/* Compact desktop tenant console. Business permissions and APIs are unchanged. */
.tenant-console{min-width:1120px;min-height:100vh;background:#f3f5f9;color:#304765;font-size:13px;line-height:1.4}
.tc-header{height:42px;display:flex;align-items:center;gap:16px;padding:0 14px;background:#fff;border-bottom:1px solid #dde4ef;position:sticky;top:0;z-index:20}
.tc-header .brand{font-size:18px;gap:7px;letter-spacing:0}.tc-header .brand-symbol{width:23px;height:23px;border-radius:5px}.tc-header .brand-symbol:before{inset:6px;border-width:3px}.tc-header .brand-symbol:after{width:4px;height:4px;right:5px;bottom:5px}.tc-header .brand small{display:none}
.tc-identity{display:flex;gap:10px;align-items:center;border-left:1px solid #e0e6ef;padding-left:15px}.tc-identity strong{font-size:13px;font-weight:600}.tc-identity a,.tc-identity .sub{font-size:12px;color:#627b9d}.tc-tools{display:flex;align-items:center;gap:13px;margin-left:auto;font-size:12px}.tc-quota{color:#6d809b}.tc-quota strong{font-size:14px;color:#375481;margin:0 3px}.tc-tools .quiet{font-size:12px;padding:3px 6px;color:#587297}.tc-demo{font-size:11px;color:#966a2b;border:1px solid #eeddbc;background:#fff8eb;border-radius:3px;padding:2px 6px}
.tc-nav{height:35px;display:flex;align-items:stretch;gap:3px;padding:0 14px;background:#fff;border-bottom:1px solid #dce4ef;position:sticky;top:42px;z-index:19}.tc-nav button{font-size:13px;padding:0 14px;border-bottom:2px solid transparent;background:transparent;color:#5b7192;white-space:nowrap}.tc-nav button:hover{background:#f4f6fc}.tc-nav button.active{background:#f1f4ff;border-bottom-color:#687bda;color:#4861b7;font-weight:600}.tc-nav-gap{flex:1}.tc-content{padding:12px 14px 20px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tp-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:10px;align-items:start}.tp-work{min-width:0;background:#fff;border:1px solid #dce4ef;border-radius:5px;overflow:hidden}
.tp-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #e4eaf3}.tp-heading-title{display:flex;align-items:center;gap:14px;min-width:0}.tp-heading h1{font-size:15px;line-height:1.4;letter-spacing:0;margin:0;font-weight:600;color:#2b4467;white-space:nowrap}.tp-heading-title>span{font-size:12px;white-space:nowrap;color:#778ba7}.tp-heading-title>span strong{font-size:12px;color:#4a6387;font-weight:600}.tp-heading-actions{display:flex;gap:5px;flex-shrink:0}
.tp-button{font-size:12px;line-height:1.4;min-height:25px;padding:3px 8px;background:#fff;color:#4c678e;border:1px solid #d3deef;border-radius:3px;white-space:nowrap;cursor:pointer}.tp-button:hover{background:#f0f4ff;border-color:#a7b9df;color:#355697}.tp-button.primary{background:#6275d3;border-color:#6275d3;color:#fff}.tp-button.primary:hover{background:#5366c2}.tp-button:disabled{background:#fafbfe;color:#a1adc0;border-color:#e1e7f1;opacity:1;cursor:not-allowed}.tp-button:focus-visible,.tp-chip:focus-visible,.tp-link:focus-visible{outline:2px solid #667ddd;outline-offset:2px}.tp-link{font-size:12px;padding:0;background:transparent;color:#5b73a5}.tp-divider{margin:0 8px;color:#c4cedd}
.tp-tiers{display:flex;gap:1px;padding:0 12px;border-bottom:1px solid #dfe6f2}.tp-tiers button{font-size:12px;line-height:1.5;padding:8px 13px 7px;border-bottom:2px solid transparent;background:transparent;color:#63799a;white-space:nowrap}.tp-tiers button strong{font-size:12px;margin-left:9px;font-weight:600;color:#496080}.tp-tiers button.active{background:#f0f2ff;color:#6576ce;border-bottom-color:#7483de}.tp-tiers button.active strong{color:#6576ce}
.tp-filter-area{padding:8px 12px 5px}.tp-filter-line{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-bottom:5px}.tp-filter-label{font-size:12px;color:#7488a5;min-width:52px}.tp-chip{font-size:12px;line-height:1.4;padding:3px 7px;background:#fff;border:1px solid #dae3f0;border-radius:3px;color:#5a7397;white-space:nowrap}.tp-chip span{font-size:11px;color:#8293ac;margin-left:5px}.tp-chip.active{background:#6879d6;border-color:#6879d6;color:#fff}.tp-chip.active span{color:#f1f3ff}
.tp-toolbar{padding:7px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #edf0f6}.tp-toolbar form{display:flex;align-items:center;gap:5px}.tp-toolbar input{width:255px;min-height:27px;padding:4px 8px;font-size:12px;color:#3d5a83;border:1px solid #d1ddef;border-radius:3px;background:#fcfdff;line-height:1.4}.tp-toolbar input::placeholder{color:#8da0ba}.tp-toolbar-right{display:flex;gap:5px}
.tp-bulk-bar{display:flex;align-items:center;gap:12px;padding:6px 8px;margin:0 12px 7px;background:#eef2fd;border:1px solid #dce5f5;border-radius:3px;font-size:12px;color:#6a80a0}.tp-bulk-bar>label{display:flex;align-items:center;gap:5px;color:#466287}.tp-bulk-bar>label span{font-size:11px;color:#8496b0}.tp-bulk-controls{display:flex;gap:5px;align-items:center;margin-left:auto}.tp-bulk-controls select{min-width:124px;font-size:12px;line-height:1.4;padding:3px 28px 3px 7px;border:1px solid #d2deef;border-radius:3px;background-color:#fff;color:#4d688d}.tp-layout input[type=checkbox]{width:13px;height:13px;margin:0;accent-color:#6578d3;cursor:pointer;flex-shrink:0}
.tp-batch{margin:0 12px 7px;border:1px solid #dae4f2;border-radius:3px;overflow:hidden}.tp-batch-head{display:flex;align-items:center;gap:8px;min-height:30px;padding:5px 8px;background:#f3f6fc;font-size:11px;line-height:1.5;color:#7b8faa}.tp-batch-head>button{display:flex;align-items:center;gap:7px;padding:0;background:transparent;color:#425f86;font-size:12px;font-weight:500}.tp-batch-head>button span{font-size:15px;line-height:1;color:#8296b2}.tp-batch-head>small{margin-left:auto;font-size:11px;white-space:nowrap}
.tp-table-scroll{overflow:auto}.tp-table{width:100%;min-width:850px;table-layout:fixed;border-collapse:collapse;white-space:normal;font-size:12px;line-height:1.4}.tp-table th{font-size:12px;font-weight:600;background:#f5f7fd;color:#4b658b;padding:6px;border-right:1px solid #e0e7f3;border-bottom:1px solid #e0e7f3;white-space:nowrap;text-align:left}.tp-table td{font-size:12px;line-height:1.4;padding:6px;border-right:1px solid #e5ebf5;border-bottom:1px solid #e5ebf5;vertical-align:middle;color:#496483;overflow-wrap:anywhere}.tp-table th:last-child,.tp-table td:last-child{border-right:0}.tp-table tr:last-child td{border-bottom:0}.tp-table tbody tr:nth-child(even){background:#fafbfe}.tp-table tr.selected{background:#f1f4ff}.tp-table tr.located{background:#edf4ff;box-shadow:inset 3px 0 #7084dc}.tp-table tbody tr:hover{background:#f1f5fc}.tp-table td>small{display:block;margin-top:2px;font-size:11px;color:#8395b0}.tp-table td>strong{font-weight:550}
.tp-col-check{width:25px}.tp-col-no{width:31px}.tp-col-email{width:157px}.tp-col-password{width:94px}.tp-col-otp{width:86px}.tp-col-balance{width:88px}.tp-col-usage{width:124px}.tp-col-progress{width:188px}.tp-col-last{width:100px}.tp-col-actions{width:260px}.tp-no{color:#90a0b7!important;font-size:11px!important}.tp-email strong{font-size:12px;color:#2c486c}.tp-secret{font:11px/1.4 Consolas,monospace!important}.tp-example-link{font-size:12px;color:#6c76c7}.tp-balance{font-size:12px!important;color:#388d81!important;font-weight:500}.tp-muted{font-weight:400;color:#8899b0}.tp-message .tp-tag{margin-bottom:2px}.tp-message>span:last-child{display:block;font-size:11px;line-height:1.5;color:#6e85a4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tp-task-id{font:10px/1.4 Consolas,monospace!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tp-last{font-size:11px!important;color:#7d91ad!important;white-space:nowrap}.tp-row-actions>div{display:flex;gap:3px;flex-wrap:wrap;max-width:none}.tp-row-actions .tp-button{min-height:21px;line-height:1.35;padding:2px 4px;font-size:11px;border-radius:2px}
.tp-tag{font-size:11px;line-height:1.4;display:inline-block;padding:2px 5px;border-radius:2px;white-space:nowrap;color:#7b8ba5;background:#edf0f6}.tp-tag.good{background:#eaf5ef;color:#388571}.tp-tag.warn{background:#fff2e0;color:#a47734}.tp-tag.blue{background:#edf1ff;color:#6376c8}
.tp-table-footer{display:flex;justify-content:space-between;align-items:center;padding:7px 12px;font-size:11px;color:#8b9cb4;border-top:1px solid #e7edf5}.tp-table-footer>div{display:flex;gap:7px;align-items:center}.tp-table-footer .tp-button{font-size:11px;min-height:23px;padding:3px 6px}.tp-empty{padding:28px 16px;text-align:center;font-size:12px;color:#8194af}.tp-empty strong{display:block;font-size:13px;font-weight:500;color:#617b9b;margin-bottom:5px}.tp-empty p{margin:0 0 10px}.tp-loading{padding:50px;text-align:center;font-size:13px;color:#7a8fae}
.tp-board{position:sticky;top:89px;max-height:calc(100vh - 101px);overflow:auto;padding:10px;background:#fff;border:1px solid #dce4ef;border-radius:5px}.tp-board-head{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:0 1px 8px}.tp-board-head h2{font-size:13px;line-height:1.4;margin:0;font-weight:600;color:#344f75}.tp-board-head p{font-size:10px;color:#90a0b8;margin:3px 0 0}.tp-board-head .tp-button{font-size:11px;min-height:22px;padding:2px 5px}
.tp-progress-card{border:1px solid #dce5f1;border-radius:3px;padding:9px;margin-bottom:7px}.tp-progress-title{display:flex;justify-content:space-between;align-items:flex-start;gap:5px;font-size:11px}.tp-progress-title strong{font-size:12px;font-weight:600;color:#365174;overflow-wrap:anywhere;min-width:0}.tp-progress-title>span{font-size:10px;color:#879bb6;white-space:nowrap}.tp-progress-status{font-size:12px;font-weight:600;color:#55739c;margin:5px 0 3px}.tp-progress-card>p{font-size:11px;color:#7b91ae;line-height:1.5;margin:0 0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tp-times{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:10px;color:#90a1ba;margin-top:5px}.tp-times .tp-created{display:none}.tp-times small{font-size:10px;color:#9cabc0}
.tp-steps{display:grid;grid-template-columns:1fr 1fr;list-style:none;margin:0;padding:5px 0 0;gap:4px 9px;font-size:11px;color:#91a0b5}.tp-steps li{display:flex;align-items:center;gap:4px;white-space:nowrap}.tp-steps li>span{width:10px;text-align:center;color:#a2b0c5}.tp-steps li>small{font-size:10px;margin-left:auto;color:#a0aec2}.tp-steps li.done{color:#4c8d7f}.tp-steps li.done>span{color:#4a9684}.tp-steps li.done>small{color:#70a395}.tp-progress-actions{display:flex;gap:5px;margin-top:7px}.tp-progress-actions .tp-button{font-size:11px;min-height:22px;padding:2px 6px}.tp-board-foot{font-size:10px;line-height:1.4;color:#99a9be;margin:7px 1px 0}.tp-board-empty{font-size:12px;line-height:1.7;color:#8b9db6;padding:15px 4px 22px}.tp-review-note{font-size:11px;line-height:1.6;color:#9b8b70;padding:4px 0}
.tp-editor-row td{background:#f3f6ff!important;padding:10px!important}.tp-inline-form{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.tp-editor-title{min-width:145px;font-size:12px;font-weight:600;color:#4d6993}.tp-editor-title small{display:block;font-size:11px;font-weight:400;color:#8d9eb7;margin-top:2px}.tp-inline-form>div>label{display:block;font-size:11px;color:#7b90ae;margin-bottom:3px}.tp-inline-form input,.tp-inline-form select{min-width:175px;font-size:12px;line-height:1.4;min-height:27px;padding:4px 7px;background:#fff;color:#47638a;border:1px solid #cfdbed;border-radius:3px}.tp-inline-form small{display:block;margin-top:2px;font-size:10px;color:#8d9eb5}.tp-editor-buttons{display:flex;gap:5px}.tp-inline-form>p{font-size:12px;color:#b85b69;margin:0;width:100%}
.tp-feedback{margin:0 12px 7px;padding:8px 10px;border:1px solid #dce5f4;border-radius:3px;background:#f5f8ff;font-size:12px;color:#6b82a3}.tp-feedback>div{display:flex;align-items:center;gap:10px}.tp-feedback strong{font-size:12px;color:#4a658c}.tp-feedback>div>span{font:10px Consolas,monospace;color:#97a8c0}.tp-feedback .tp-button{font-size:11px;min-height:21px;padding:2px 5px;margin-left:auto}.tp-feedback ul{list-style:none;padding:5px 0 0;margin:0;max-height:150px;overflow:auto}.tp-feedback li{display:flex;gap:10px;padding:4px 0;border-top:1px solid #e2eaf6}.tp-feedback li strong{min-width:170px;overflow-wrap:anywhere}.tp-feedback li.ok span{color:#4e8c7e}.tp-feedback li.error span{color:#b17b4f}.tp-feedback>p{margin:5px 0 0}
.tp-records-head{display:flex;align-items:center;gap:9px;padding:9px 12px;border-bottom:1px solid #e1e8f3}.tp-records-head p{font-size:12px;color:#7b91ae;margin:0}.tp-task-table{min-width:1050px;white-space:normal;font-size:12px}.tp-task-table th{font-size:12px;color:#536e93;padding:7px 10px;background:#f4f7fc}.tp-task-table td{font-size:12px;padding:8px 10px;color:#5f799b;max-width:230px;overflow-wrap:anywhere}.tp-task-table small{display:block;font-size:11px;color:#8da0b9;margin-top:2px}.tp-task-table strong{font-size:11px;font-weight:500}.tp-task-table .tp-button{margin:2px 3px 2px 0;font-size:11px;padding:2px 6px;min-height:23px}.tp-detail-events{font-size:12px;color:#6e85a6;max-height:260px;overflow:auto;margin-top:7px}.tp-detail-events p{margin:0;padding:6px 0;border-bottom:1px solid #e6ecf5;line-height:1.5}.tp-detail-events time,.tp-detail-events strong{display:block;font-size:11px;color:#8b9eb8}.tp-plus-notice{margin:7px 12px 0;padding:6px 9px;background:#fff9ee;border:1px solid #f0e3c9;display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:11px;color:#a18b60}
/* Other tenant pages use the same compact controls and spacing. */
.tc-content .page-heading{margin:0 0 10px;align-items:center}.tc-content .eyebrow,.tc-content .page-heading .sub{display:none}.tc-content h1{font-size:16px;line-height:1.4;letter-spacing:0}.tc-content h2{font-size:13px;line-height:1.4}.tc-content .sub{font-size:12px;line-height:1.5}.tc-content .panel{border-radius:5px;margin-bottom:12px;box-shadow:none}.tc-content .panel-head{padding:10px 12px;gap:10px}.tc-content .panel-head .sub{font-size:11px;margin-top:2px}.tc-content .panel-body{padding:13px}.tc-content .panel-note{padding:7px 12px;font-size:11px}.tc-content .btn{font-size:12px;line-height:1.4;padding:5px 10px;min-height:28px;border-radius:3px;box-shadow:none}.tc-content .quiet{font-size:12px;padding:3px 5px}.tc-content .actions{gap:5px}.tc-content .grid-two{gap:12px}.tc-content .toolbar{padding:8px 12px;gap:7px}.tc-content .toolbar .search{font-size:12px;min-height:28px;border-radius:3px;padding:5px 8px}.tc-content table{font-size:12px;line-height:1.45}.tc-content .panel th{font-size:11px;padding:7px 12px}.tc-content .panel td{padding:8px 12px}.tc-content td .secondary{font-size:11px;margin-top:2px}.tc-content .tag{font-size:11px;line-height:1.4;padding:3px 6px;border-radius:3px}.tc-content .mono{font-size:12px}.tc-content .field{gap:5px;margin-bottom:12px}.tc-content .field label{font-size:12px}.tc-content .field input,.tc-content .field select,.tc-content .field textarea{font-size:12px;min-height:30px;padding:6px 8px;border-radius:3px}.tc-content .field textarea{min-height:75px}.tc-content .field small{font-size:11px}.tc-content .field p{font-size:13px;margin:0}.tc-content .help{font-size:12px;padding:9px;margin-bottom:12px;border-radius:3px}.tc-content .site-card{background:#f6f8fe;border-radius:4px;padding:13px;margin-bottom:12px}.tc-content .site-card a{font-size:15px;margin:7px 0}.tc-content .notice{font-size:11px;margin:12px 0}.tc-content .empty{padding:30px 16px;font-size:12px}.tc-content .empty-icon{display:none}.tc-content .form-row{gap:12px}.tc-content .form-error{font-size:12px;margin:7px 0}.tc-balance-strip{display:flex;gap:26px;align-items:center;padding:10px 13px;margin-bottom:12px;border:1px solid #dce4ef;border-radius:4px;background:#fff;font-size:12px;color:#7a8da8}.tc-balance-strip strong{font-size:14px;color:#456184;margin-left:7px;font-weight:600}
/* This scope is applied only after selecting a tenant login/session. */
body.tenant-session dialog{max-width:500px;border-radius:6px;font-size:13px;line-height:1.5}body.tenant-session dialog h2{font-size:15px;line-height:1.4}body.tenant-session dialog h3{font-size:13px}body.tenant-session .modal-head{padding:12px 16px}body.tenant-session .modal-body{padding:15px 16px}body.tenant-session .modal-footer{padding:9px 16px;gap:6px}body.tenant-session dialog .field{gap:5px;margin-bottom:12px}body.tenant-session dialog .field label{font-size:12px}body.tenant-session dialog input,body.tenant-session dialog select,body.tenant-session dialog textarea{font-size:13px;min-height:32px;padding:6px 9px;border-radius:4px}body.tenant-session dialog .field small,body.tenant-session dialog .sub{font-size:12px}body.tenant-session dialog .help{font-size:12px;padding:9px;margin-bottom:12px;border-radius:4px}body.tenant-session dialog .btn{font-size:12px;min-height:29px;padding:5px 10px;border-radius:3px;box-shadow:none}body.tenant-session .detail-list{font-size:12px}body.tenant-session .detail-list>div{padding:8px 0;grid-template-columns:90px 1fr}body.tenant-session .credential-box{font-size:12px;padding:10px;border-radius:4px}body.tenant-session .result-facts{padding:8px;border-radius:4px}body.tenant-session .result-facts>div{font-size:12px;padding:6px 2px}body.tenant-session #toast{font-size:12px;padding:8px 14px;border-radius:4px}
.tc-login-page{min-height:100vh;background:#f4f6fa;color:#3c567d}.tc-login-page>header{height:49px;display:flex;align-items:center;gap:18px;background:#fff;border-bottom:1px solid #dfe6f0;padding:0 22px}.tc-login-page .brand{font-size:19px;gap:8px}.tc-login-page .brand-symbol{width:27px;height:27px;border-radius:5px}.tc-login-page .brand-symbol:before{inset:7px;border-width:3px}.tc-login-page .brand-symbol:after{width:5px;height:5px;right:6px;bottom:6px}.tc-login-page .brand small{display:none}.tc-login-page>header>span{font-size:12px;color:#8195b0;border-left:1px solid #e0e6ef;padding-left:18px}.tc-login-card{width:360px;padding:26px;margin:10vh auto 30px;border:1px solid #dce5f1;border-radius:5px;background:#fff}.tc-login-card h1{font-size:18px;line-height:1.4;letter-spacing:0;margin:0 0 7px;font-weight:600}.tc-login-card>p{font-size:12px;color:#8497b1;margin:0 0 22px}.tc-login-card .field{gap:5px;margin-bottom:13px}.tc-login-card .field label{font-size:12px}.tc-login-card input{font-size:13px;min-height:34px;padding:7px 9px;border-radius:3px}.tc-login-card .btn{width:100%;font-size:13px;min-height:33px;padding:6px 10px;border-radius:3px;box-shadow:none}.tc-login-card footer{font-size:11px;color:#9baac0;text-align:center;margin-top:17px}
@media(min-width:2200px){.tp-layout{grid-template-columns:minmax(0,1fr) 300px}.tp-col-email{width:185px}.tp-col-progress{width:230px}.tp-col-actions{width:300px}}

/* Keep identity and actions visible when a narrower desktop needs table scrolling. */
.tp-table th:last-child,.tp-row-actions{position:sticky;right:0;z-index:3;background:#fff;box-shadow:-2px 0 4px #43618d09}
.tp-table th:last-child{z-index:5;background:#f5f7fd}
.tp-table td:nth-child(1),.tp-table td:nth-child(2),.tp-table td:nth-child(3),.tp-table th:nth-child(1),.tp-table th:nth-child(2),.tp-table th:nth-child(3){position:sticky;z-index:2;background:#fff}
.tp-table td:nth-child(1),.tp-table th:nth-child(1){left:0}.tp-table td:nth-child(2),.tp-table th:nth-child(2){left:25px}.tp-table td:nth-child(3),.tp-table th:nth-child(3){left:56px}
.tp-table th:nth-child(1),.tp-table th:nth-child(2),.tp-table th:nth-child(3){z-index:4;background:#f5f7fd}.tp-table tr.selected>td{background:#f1f4ff}.tp-table tr.located>td{background:#edf4ff}

.tp-table.has-data{min-width:1200px}
