/* Shared controls used by the field and platform panels. */
.panel-title-group {display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;min-width:0}
.panel-title-group h1 {margin:0}
.page-head #title {display:inline;vertical-align:middle}
button.page-help {display:inline-grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;margin:0;vertical-align:middle;border:0;border-radius:50%;background:transparent;color:#225844;font:600 20px/1 system-ui}
button.page-help:hover,button.page-help:focus-visible {background:#e9f3ed}
body:not(.signed-in) .page-head .page-help {display:none}
dialog.panel-help-dialog[open] {position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(28rem,calc(100% - 2rem));max-height:80dvh;height:fit-content;padding:1.4rem;border:1px solid #bfd2c6;border-radius:14px;background:white;color:#173a2e;box-shadow:0 18px 60px #152e3029}
.panel-help-dialog::backdrop {background:#112d2866}
.panel-help-dialog h2 {margin:0 0 .75rem;font-size:1.2rem}
.panel-help-dialog p {margin:0 0 1.2rem;line-height:1.55}
.panel-help-dialog button {min-height:44px}
.record-tools,.registry-actions,.jump-pages {display:flex;flex-wrap:wrap;gap:.5rem .75rem;align-items:end}
.record-tools {background:#f5f8f5;border:1px solid #d8e4db;border-radius:10px;padding:.65rem .85rem;margin-block:.5rem 1rem}
.record-tools label {display:grid;gap:.35rem;min-width:0;margin:0;font-weight:600;font-size:.85rem;flex:1 1 10rem}
.record-tools :is(input,select) {box-sizing:border-box;min-width:0;width:100%;min-height:44px;background:white;border:1px solid #aebfb4;border-radius:8px;padding:.5rem .7rem;font:inherit;color:inherit}
.record-tools output {margin-inline-start:auto;align-self:center;color:#40594c;font-size:.85rem;font-variant-numeric:tabular-nums}
.table-filter {padding:.2rem .6rem;margin:0}
.table-filter summary {display:list-item;width:fit-content;cursor:pointer;min-height:44px;line-height:44px;color:#14523f;font-weight:600}
.table-filter[open] .record-tools {margin:0 0 .5rem}
.registry-actions {align-items:center;margin-block:.85rem}
.registry-nav [aria-pressed=true] {background:#0e4b3b;color:white;border-color:#0e4b3b}
.registry-list button[role=switch] {display:inline-flex;align-items:center;gap:.4rem}
.registry-list button[role=switch]::before {content:'';width:31px;height:18px;border-radius:12px;border:1px solid #728579;background:radial-gradient(circle at 8px center,#fff 5px,transparent 6px),#77857d;flex:none}
.registry-list button[role=switch][aria-checked=true]::before {background:radial-gradient(circle at 22px center,#fff 5px,transparent 6px),#186347}
.jump-pages {align-items:center;gap:.35rem}
.jump-pages :is(a,button) {display:inline-flex;align-items:center;min-height:44px;padding:0 .7rem;border:1px solid #c5d5c9;border-radius:8px;text-decoration:none;color:#14523f;background:white}
.shift-list {display:grid;gap:.75rem}
.shift-list article {padding:.8rem;border:1px solid #d7e2db;border-radius:10px}
.overview-chart {min-width:0;margin:0;padding:1.1rem 1.25rem;background:white;border:1px solid #dce4dd;border-radius:12px}
.record .overview-chart {border:0;padding:.4rem 0}
.overview-chart figcaption {font-weight:700;margin:0 0 .75rem}
.chart-line {display:grid;grid-template-columns:minmax(5rem,1fr) minmax(3rem,1.3fr) minmax(2ch,auto);align-items:center;gap:.6rem;min-height:2.2rem}
.chart-line span,.chart-line button {overflow-wrap:anywhere}
.chart-line strong {font-variant-numeric:tabular-nums;text-align:end}
.chart-line meter {width:100%;height:12px;accent-color:#17624b}
.chart-line meter::-webkit-meter-optimum-value {background:#17624b}
.chart-line meter::-moz-meter-bar {background:#17624b}
.chart-line button {text-align:start;justify-self:start}
.jump-pages [hidden],.registry-list li[hidden],.responsive-records tbody tr[hidden] {display:none!important}
@media(max-width:700px){
  .signed-in :is(.registry-nav,.registry-actions) :is(a,button),.signed-in .registry-list button,.signed-in .shift-board button,.signed-in #sections button,.signed-in #content button,.signed-in #additional button {min-height:44px}
  .signed-in .registry-list li {flex-wrap:wrap;min-width:0;overflow-wrap:anywhere}
  .signed-in .registry-nav {display:flex;flex-wrap:wrap;gap:.35rem}
  .signed-in .page-head .workspace-tools {flex-wrap:wrap}
  .record-tools {align-items:stretch}
  .record-tools output {margin-inline-start:0}
  .table-scroll:has(table.responsive-records),.grid-scroll:has(table.responsive-records){overflow:visible;min-width:0;max-width:100%}
  .signed-in :is(.panel-table,.desk-data,.sales-table).responsive-records {display:block;width:100%;min-width:0;max-width:100%;table-layout:auto}
  .responsive-records thead {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
  .signed-in table.responsive-records tbody {display:grid;gap:.6rem}
  .signed-in table.responsive-records tbody tr {display:block;border:1px solid #d9e4dc;border-radius:10px;background:white;padding:.45rem .65rem}
  .signed-in table.responsive-records tbody td {position:static;display:grid;grid-template-columns:minmax(5rem,32%) minmax(0,1fr);align-items:start;gap:.25rem .6rem;text-align:start;border:0;min-width:0;width:auto;max-width:none;white-space:normal;overflow-wrap:anywhere;padding:.35rem 0;box-shadow:none}
  .signed-in table.responsive-records tbody td::before {content:attr(data-label);grid-row:1 / span 12;font-size:.8rem;color:#496052}
  .signed-in table.responsive-records tbody td :is(button,a) {justify-self:start;max-width:100%}
  .signed-in table.responsive-records .issue-cell-label {display:none}
}
@media(max-width:540px){
  .signed-in .app-top .bar {display:grid;grid-template-columns:repeat(3,44px) minmax(0,1fr) auto;gap:4px;height:auto;min-height:52px;padding:4px 8px}
  .signed-in #menu-toggle,.signed-in .app-top .shell-search,.signed-in #alert-center,.signed-in #profile-menu summary {box-sizing:border-box;min-width:44px;min-height:44px}
  .signed-in .app-top #profile-menu {grid-column:5;grid-row:1;justify-self:end}
  .signed-in .app-top #booking-actions {grid-column:4;grid-row:1;flex-wrap:wrap;justify-content:end;min-width:0}
  .signed-in #booking-actions button {height:auto;min-height:44px;max-width:100%;white-space:normal;line-height:1.15;padding:4px 8px}
  .signed-in .app-top .bar:has(#booking-actions button:not([hidden]) ~ button:not([hidden])) #booking-actions {grid-column:1 / -1;grid-row:2;justify-content:stretch}
  .signed-in .app-top .bar:has(#booking-actions button:not([hidden]) ~ button:not([hidden])) #booking-actions button {flex:1 1 40%}
  .signed-in:has(#booking-actions button:not([hidden]) ~ button:not([hidden])) #app-menu {inset-block-start:100px}
}

.signed-in .registry-nav[aria-label="Firma kayıt türleri"] {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;background:#eef3ef;border-radius:12px}
.signed-in .registry-nav[aria-label="Firma kayıt türleri"] button {min-height:44px;width:100%;margin:0;justify-content:center;line-height:1.2}
.signed-in .directory-page:has(.registry-nav) {gap:.65rem;align-content:start}
.signed-in .directory-page .registry-actions,.signed-in .directory-page .record-tools {margin-block:0}
button.page-help {margin-inline-start:.25rem}
button.page-help:focus-visible {outline:2px solid #17624b;outline-offset:0}
@media(max-width:540px){
  .signed-in .registry-nav[aria-label="Firma kayıt türleri"] {grid-template-columns:repeat(2,minmax(0,1fr))}
  .record-tools {display:grid;grid-template-columns:minmax(0,1fr)}
  .record-tools output {justify-self:start}
  .signed-in #menu-toggle {padding:0;text-align:center;font-size:.75rem;line-height:1.2}
}

.fleet-query-dates,.fleet-batch-row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
.fleet-batch-lines,.fleet-query-result {display:grid;gap:.7rem}
.fleet-batch-row,.fleet-query-card {min-width:0;margin:0;padding:.8rem;border:1px solid #d7e2db;border-radius:10px}
.fleet-batch-row legend {padding:0 .3rem;font-weight:700}
.fleet-query-card {overflow-wrap:anywhere}
.fleet-query-card div {margin-top:.35rem}
.fleet-query-dates input,.fleet-batch-row input {min-width:0;width:100%;box-sizing:border-box}
@media(max-width:460px){
  .fleet-batch-row,.fleet-query-dates {grid-template-columns:minmax(0,1fr)}
  .fleet-batch-row button {min-height:44px}
}


/* Shared desktop workspace. Dialogs, directories and reports follow the company detail surfaces. */
.desk-icon {display:inline-block;vertical-align:middle;width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.firm-metrics,.firm-panels {display:grid;gap:14px;margin-block:18px}
.firm-metrics {grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr))}
.firm-panels {grid-template-columns:repeat(auto-fit,minmax(min(330px,100%),1fr))}
.firm-meta,.firm-caption,.firm-shortcuts {display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.firm-meta {margin:6px 0 20px;color:var(--muted)}
.firm-summary,.firm-panels>.record {background:white;border:1px solid var(--line);border-radius:14px;padding:20px;min-width:0}
.firm-panels>.record {margin:0;align-content:start}
.firm-summary {display:flex;flex-direction:column;align-items:flex-start;gap:9px}
.firm-caption {font-weight:650;font-size:15px}
.firm-caption .desk-icon {box-sizing:content-box;padding:7px;border-radius:9px;background:#eaf4ed;color:var(--forest)}
.firm-summary>strong {font:680 clamp(21px,1.55vw,29px)/1.2 var(--sans);overflow-wrap:anywhere}
.firm-summary>small {flex:1;color:var(--muted)}
.firm-summary>button,.firm-panels .record>button:not(.primary):not(.firm-toggle),.firm-back {min-height:36px;padding:5px 0;color:var(--forest);border:0;background:transparent;text-align:start}
.firm-summary>button {width:100%;border-top:1px solid var(--line);margin-top:6px;padding-top:10px}
.firm-back::before {content:'‹';margin-inline-end:6px}
.firm-panels .record h2 {padding-bottom:10px;border-bottom:1px solid var(--line)}
.firm-panels .record>div:has(>small+strong) {display:grid;gap:3px}
.firm-expiry {display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:16px 20px;border-radius:14px;background:#104b39;color:white}
.firm-expiry>div {margin-right:auto}.firm-expiry strong,.firm-expiry small {display:block}.firm-expiry small {color:#e4efe8}
.firm-expiry>button:not(.primary) {background:transparent;color:white;border-color:#80a998}
.firm-toggle {display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;text-align:start}
.firm-toggle::after {content:'';flex:none;width:38px;height:22px;border-radius:12px;background:radial-gradient(circle at 11px center,white 7px,transparent 8px),#74847a}
.firm-toggle[aria-checked=true]::after {background:radial-gradient(circle at 27px center,white 7px,transparent 8px),var(--forest)}
.firm-shortcuts {gap:4px;flex-wrap:nowrap}.firm-shortcuts .firm-shortcut {width:34px;height:34px;min-height:34px;display:inline-grid;place-items:center;padding:0;border:1px solid var(--line);color:var(--forest);background:white}
#sections button .desk-icon {margin-right:8px;width:17px;height:17px}
@media(min-width:851px){
  body.signed-in {--line:#d8dfd7;--rule:#e9ede7;--surface:#fff;--paper:#f7f6f1;--muted:#53665b;--card-radius:14px;--action-radius:8px;color:#1a2a22}
  .signed-in #sections {background:#103e32}
  .signed-in #sections h2 {color:#b6cfc1}
  .signed-in :is(#sections button,#app-menu nav a):hover {background:#205746;color:white}
  .signed-in #sections button[aria-current=page],.signed-in #app-menu nav a[aria-current=page] {background:#e2f1e5;color:#104633}
  .signed-in :is(.rail-brand,.rail-user) {border-color:#3c6253}
  .signed-in .rail-brand span+span {background:transparent;color:#c0d6c8;padding:0}
  .signed-in :is(#desk,.page-head) h1 {color:#172b21;font:630 clamp(27px,2vw,36px)/1.18 var(--display);letter-spacing:-.045em}
  .signed-in :is(#additional,#workspace,#content,.home-columns,.desk-pair,.panel-heading,.grid-scroll,.table-scroll,.bar>div,.firm-panels>*) {min-width:0}
  .signed-in #additional>.bar,.signed-in #workspace>.bar,.signed-in .page-head {align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 18px}
  .signed-in #additional>.bar .panel-title-group {margin-right:auto}
  .signed-in :is(.record,.plan-card,.overview-chart,.metric,.desk-metrics article,.home-panel,.panel-sheet,.guide-panel,.tenant-operation-card,.profile-section,.support-thread) {border-color:var(--line);border-radius:14px;background:var(--surface);box-shadow:none}
  .signed-in :is(.record,.plan-card,.desk-metrics article,.metric) {padding:18px 20px}
  .signed-in .desk-metrics {gap:14px}
  .signed-in .desk-metrics article strong,.signed-in .metric strong {font:680 clamp(24px,2vw,34px)/1.17 var(--sans);font-variant-numeric:tabular-nums}
  .signed-in .panel-heading {align-items:center;gap:12px;flex-wrap:wrap}
  .signed-in .panel-heading :is(button.primary,a.primary),.signed-in :is(#content,.panel-sheet,.home-panel,.tariff-sheet)>.primary,
  .signed-in :is(.registry-actions,.support-tools,.bar,.pages,.workspace-tools,.registry-nav,.issue-filters)>.primary {width:auto;max-width:100%;flex:0 0 auto;justify-self:start}
  .signed-in :is(.panel-sheet,.record,.home-panel) > :is(.panel-sheet,.record,.panel-heading) {margin:0;border-inline:0;border-radius:0;box-shadow:none;padding-inline:0}
  .signed-in :is(#desk,#content) :is(.issue-filters,.publication-tabs,.team-tabs) {display:inline-flex;align-items:center;flex-wrap:wrap;gap:3px;width:fit-content;max-width:100%;margin:0;padding:4px;border:0;border-radius:10px;background:#f0f3ed}
  .signed-in :is(#desk,#content) :is(.issue-filters,.publication-tabs,.team-tabs) :is(a,button) {white-space:nowrap;width:auto;min-height:38px;padding:6px 14px;border:0;border-radius:7px;color:#28503e;background:transparent;box-shadow:none}
  .signed-in :is(#desk,#content) :is(.issue-filters,.publication-tabs,.team-tabs) :is([aria-current=page],[aria-pressed=true]) {background:var(--forest);color:white}
  .signed-in .bulletin-board {gap:0;overflow:hidden;padding:0}
  .signed-in .bulletin-board>.panel-heading {padding:16px 22px;border-bottom:1px solid var(--line);justify-content:space-between}
  .signed-in .bulletin-board .panel-empty-state {min-height:202px;align-content:center;gap:8px;border:0;background:transparent}
  .signed-in .bulletin-board .panel-empty-state svg {box-sizing:content-box;padding:12px;background:#e9f3eb;border-radius:12px}
  .signed-in .bulletin-board .panel-empty-state strong {font-size:20px}
  .signed-in .bulletin-board .panel-empty-state p {font-size:15px}
  .signed-in .tenant-filter {display:flex;flex-wrap:wrap;align-items:end;gap:10px;background:white;border:1px solid var(--line);border-radius:14px;padding:15px}
  .signed-in .tenant-filter label {flex:1 1 130px;max-width:285px}
  .signed-in .tenant-filter .check {flex:none;align-self:center}
  .signed-in .tenant-table {max-width:100%;overflow-x:auto}
  .signed-in .tenant-table .desk-data {min-width:1080px}
  .signed-in .tenant-table th button {text-align:start;font:inherit;cursor:pointer;padding:0 3px;min-height:32px;border:0;background:transparent;white-space:nowrap}
  .signed-in :is(.desk-data,.panel-table,.sales-table) :is(td,th) {padding:11px 13px;border-color:var(--rule);font-variant-numeric:tabular-nums}
  .signed-in :is(.desk-data,.panel-table,.sales-table) th {color:#435b4b;background:#f1f4ee}
  .signed-in :is(.desk-data,.panel-table,.sales-table) tbody tr:hover {background:#f7faf6}
  .signed-in :is(.grid-scroll,.table-scroll) {scrollbar-gutter:auto}
  .signed-in .panel-title-group .page-help,.signed-in .page-head .page-help {width:36px;height:36px;min-width:36px;min-height:36px}
  .signed-in :is(button,.button):focus-visible,.signed-in summary:focus-visible {outline:3px solid #23775d;outline-offset:2px}
  .signed-in :is(#editor,#field-dialog[data-kind=drawer])[open] {box-sizing:border-box;background:white;border:0;border-left:1px solid var(--line);padding:24px 28px;max-width:100%;scrollbar-gutter:stable;overscroll-behavior:contain}
  .signed-in :is(#editor,#field-dialog) > :is(.bar,.dialog-head) {background:white;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:20px}
  .signed-in :is(#editor-body,#field-dialog) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {border-radius:8px;min-width:0;max-width:100%;border-color:#aebfb1}
  .signed-in :is(#editor-body,#field-dialog) :is(fieldset,.panel,.card) {min-width:0;border-color:var(--line);border-radius:10px;box-shadow:none}
  .signed-in :is(#editor-body,#field-dialog) :is(.form,form)>.primary {width:fit-content;justify-self:end;min-width:120px}
}

@media(min-width:1000px){
  .signed-in .firm-panels{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}
  .firm-summary meter{width:100%;height:9px;accent-color:var(--forest)}
  .firm-summary>button::after,.firm-action-row::after{content:'›';float:right;margin-inline-start:auto}
  .signed-in .firm-panels .firm-action-row{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:12px 0;border-bottom:1px solid var(--line);border-radius:0}
  .firm-action-row span,.firm-contact>div{display:grid;gap:3px}
  .firm-contact{display:flex;align-items:center;gap:12px}
  .firm-contact .integration-status{margin-inline-start:auto;white-space:nowrap}
  .firm-action-row .desk-icon,.firm-contact .desk-icon{box-sizing:content-box;flex:none;padding:9px;background:#e9f3eb;border-radius:9px;color:var(--forest)}
  .firm-contact strong{overflow-wrap:anywhere}
  .signed-in .tenant-table td:first-child,.signed-in .tenant-table td:last-child{position:sticky;z-index:1;background:var(--surface)}
  .signed-in .tenant-table td:first-child{left:0}.signed-in .tenant-table td:last-child{right:0}
}

.firm-filter-options {display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:12px 0 0}
#company-more-filters summary {cursor:pointer;color:var(--forest);font-weight:650}
@media(min-width:1000px){
  .signed-in .tariff-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
  .signed-in .tariff-heading>button.primary{width:auto;flex:0 0 auto}
  .signed-in .practice-guide>button.primary{width:fit-content;max-width:100%;justify-self:start}
  .signed-in .directory-page .registry-list li {
    grid-template-columns:minmax(10rem,1fr);
    grid-auto-columns:max-content;
    grid-auto-flow:column;
    column-gap:.5rem;
    row-gap:0;
    align-items:center;
  }
  .signed-in .directory-page .registry-list li>strong {grid-area:1/1}
  .signed-in .directory-page .registry-list li>small {grid-area:2/1}
  .signed-in .directory-page .registry-list li>small~small {grid-area:3/1}
  .signed-in .directory-page .registry-list li>button {grid-row:1/4;margin:0;min-width:0}
  .signed-in #search.tenant-filter{display:grid;grid-template-columns:minmax(180px,2fr) minmax(142px,1fr) minmax(156px,1fr) auto 102px auto;align-items:end}
  #search.tenant-filter>label{max-width:none;min-width:0}
  #company-more-filters{grid-column:4;min-width:115px}
  #company-more-filters>summary{min-height:44px;align-content:center}
  #company-more-filters[open]{grid-column:1/-1;grid-row:2;border-top:1px solid var(--line)}
  #search.tenant-filter>.directory-size{grid-column:5;grid-row:1}
  #search.tenant-filter>button{grid-column:6;grid-row:1}
  .signed-in .tenant-table .desk-data td:first-child{min-width:158px}
  .signed-in .tenant-table .desk-data :is(th,td){padding-inline:9px}
  .signed-in .tenant-table .tenant-cell>.company-link{overflow-wrap:normal;word-break:normal}
}

@media(min-width:1000px) and (max-width:1199px){
  .signed-in #search.tenant-filter{grid-template-columns:repeat(3,minmax(0,1fr))}
  #company-more-filters,#search.tenant-filter>.directory-size,#search.tenant-filter>button{grid-column:auto;grid-row:auto}
  #company-more-filters[open]{grid-column:1/-1}
}
