/* Tuncay Yemek & Catering — compact, responsive management lists.
   Scoped to the three everyday lists; detail/finance tables are unchanged. */
.management-panel{overflow:hidden;border:1px solid #e2e8f0;box-shadow:0 8px 28px rgba(26,43,66,.045)}
.management-panel .panel-hd{padding:20px 22px 16px}
.management-panel .panel-hd h2{font-size:1.03rem;letter-spacing:-.02em;color:#1c304b}
.management-panel .panel-hd p{font-size:.77rem;color:#7889a0;line-height:1.45}
.management-panel .mgmt-toolbar{display:flex;gap:10px;align-items:center;padding:15px 20px;border-bottom:1px solid #e6ebf1;flex-wrap:wrap}
.management-panel .mgmt-small-toolbar{padding-block:11px;background:#fcfdff}
.management-panel .mgmt-search-wrap{display:flex;flex:1 1 270px;align-items:center;gap:9px;min-width:190px;border:1px solid #dfe5ed;border-radius:10px;background:#fff;padding:0 12px;min-height:42px;transition:border-color .15s,box-shadow .15s}
.management-panel .mgmt-search-wrap:focus-within{border-color:#c6a16e;box-shadow:0 0 0 3px rgba(190,158,108,.16)}
.management-panel .mgmt-search-wrap>.icon{width:18px;height:18px;flex:0 0 auto;color:#8d9bae}
.management-panel .mgmt-search-wrap .input{min-width:0;width:100%;height:40px;padding:0;border:0;outline:0;box-shadow:none;background:transparent;flex:1 1 auto;color:#243b54;font-size:.84rem}
.management-panel .mgmt-search-wrap .input:focus{box-shadow:none}
.management-panel .contact-filter{flex:0 1 205px;min-width:160px}
.management-panel .contact-filter select{min-width:0;width:100%;height:42px;color:#2b405a;font-weight:650;background:#fff}
.management-panel .mgmt-check{display:flex;align-items:center;gap:8px;font-size:.78rem;color:#596b81;border:1px solid #e3e8ee;border-radius:10px;padding:10px 12px;white-space:nowrap;min-height:42px;cursor:pointer}
.management-panel .mgmt-check input{width:15px;height:15px;accent-color:#ae8954}
.management-panel .mgmt-count{padding:8px 12px;border-radius:9px;background:#f6f1e9;color:#866b46;font-weight:800;font-size:.74rem;white-space:nowrap;margin-left:auto}
.management-panel .mgmt-scroll{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.management-panel .management-table{min-width:720px;width:100%;font-size:.81rem;border-collapse:collapse;table-layout:auto}
.management-panel .management-table thead{background:#f5f7fa}
.management-panel .management-table th{font-size:.72rem;letter-spacing:.015em;text-transform:none;font-weight:850;color:#64758c;padding:13px 15px;white-space:nowrap;background:#f6f8fa}
.management-panel .management-table td{padding:13px 15px;border-bottom:1px solid #ebeff4;vertical-align:middle;font-size:.81rem;white-space:nowrap;color:#34465f}
.management-panel .management-table td:first-child,.management-panel .management-table th:first-child{padding-left:20px}
.management-panel .management-table td:last-child,.management-panel .management-table th:last-child{padding-right:20px}
.management-panel .management-table tr:nth-child(even):not([data-filter-empty]) td{background:#fbfcfe}
.management-panel .management-table tbody tr:hover td{background:#f8f4ed}
.management-panel .management-table tbody tr:last-child td{border-bottom:0}
.management-panel .management-table [hidden]{display:none!important}
.management-panel .mgmt-sort{display:inline-flex;align-items:center;gap:7px;min-height:25px;padding:0;border:0;background:transparent;font:inherit;letter-spacing:inherit;font-weight:inherit;color:inherit;cursor:pointer;text-align:left}
.management-panel .mgmt-sort:hover,.management-panel .mgmt-sort:focus-visible{color:#9d784a}
.management-panel .mgmt-sort:focus-visible{outline:2px solid #bd9c67;outline-offset:4px;border-radius:3px}
.management-panel .mgmt-sort-glyph{font-size:.83rem;color:#a5adba;font-weight:800}
.management-panel .mgmt-sort:hover .mgmt-sort-glyph{color:#b18b52}
.management-panel .mgmt-entity{display:flex;align-items:center;gap:10px;min-width:170px}
.management-panel .mgmt-avatar{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:10px;background:#f7efe3;color:#aa8553}
.management-panel .mgmt-avatar .icon{width:19px;height:19px}
.management-panel .mgmt-avatar-staff{background:#edf2f8;color:#637c9d}
.management-panel .mgmt-avatar-user{background:#eaf1f8;color:#50718d}
.management-panel .mgmt-entity-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.management-panel .mgmt-entity-copy .link,.management-panel .mgmt-entity-copy>strong{font-size:.85rem;color:#19324f;font-weight:850;text-align:left;white-space:normal;line-height:1.25}
.management-panel .mgmt-entity-copy .link:hover{color:#916b3c}
.management-panel .mgmt-entity-copy .subtext{font-size:.71rem;color:#8190a4;line-height:1.25;margin:0}
.management-panel .management-table td.num{font-weight:740;color:#43546a;font-size:.83rem;font-variant-numeric:tabular-nums}
.management-panel .management-table td.mgmt-money{font-weight:890;color:#203753;font-size:.88rem;letter-spacing:-.015em}
.management-panel .management-table td.mgmt-remaining{color:#19324f}
.management-panel .management-table td.mgmt-date{color:#687a92;font-variant-numeric:tabular-nums}
.management-panel .management-table .pill{padding:6px 10px;font-size:.7rem;font-weight:800;border-radius:9px}
.management-panel .management-table .mgmt-category{color:#53677f;background:#edf1f6}
.management-panel .mgmt-permissions{color:#566c85!important}
.management-panel .management-table td.mgmt-actions-cell{text-align:right}
.management-panel .mgmt-row-actions{display:flex;gap:7px;justify-content:flex-end;align-items:center;flex-wrap:nowrap}
.management-panel .mgmt-action{min-height:34px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:7px 10px!important;white-space:nowrap;font-weight:790;font-size:.75rem;border-radius:9px}
.management-panel .mgmt-action .icon{width:15px;height:15px}
.management-panel .mgmt-action.mgmt-danger{border:1px solid #f2d7d8;background:#fff9f9;color:#bc4d56}
.management-panel .mgmt-action.mgmt-danger:hover{background:#ffecec;border-color:#e7abb0}
.management-panel .mgmt-empty{padding:35px 15px!important;text-align:center!important;color:#8190a2!important;white-space:normal!important}
.management-panel .management-table .staff-row-actions{flex-wrap:nowrap}
@media (max-width:1150px){
 .management-panel .management-table th,.management-panel .management-table td{padding-inline:11px}
 .management-panel .management-table .mgmt-entity{min-width:145px}
 .management-panel .mgmt-action{padding:6px 9px!important}
}
@media (max-width:600px){
 .management-panel .mgmt-toolbar{padding:12px;gap:8px}
 .management-panel .mgmt-search-wrap{min-width:0;flex:1 1 100%;min-height:43px}
 .management-panel .mgmt-search-wrap .input{min-width:0!important}
 .management-panel .contact-filter{flex:1 1 145px;min-width:0}
 .management-panel .mgmt-check{flex:0 0 auto;min-height:42px;font-size:.72rem;padding:8px}
 .management-panel .mgmt-count{margin-left:0;font-size:.71rem}
 .management-panel .management-table.responsive-list{display:block;width:100%;min-width:0;table-layout:auto}
 .management-panel .responsive-list tbody{display:grid;gap:11px;padding:12px}
 .management-panel .responsive-list tbody tr{border:1px solid #e0e7ef;border-radius:13px;background:#fff;box-shadow:0 4px 15px rgba(25,48,74,.045);overflow:hidden}
 .management-panel .responsive-list tbody tr:nth-child(even) td{background:transparent}
 .management-panel .responsive-list tbody td{padding:10px 13px!important;text-align:right;white-space:normal;min-width:0;font-size:.8rem}
 .management-panel .responsive-list tbody td:first-child{padding:13px!important;text-align:left;background:#f7f9fc!important}
 .management-panel .responsive-list tbody td:first-child .mgmt-entity{min-width:0}
 .management-panel .responsive-list tbody td .mgmt-entity-copy{min-width:0}
 .management-panel .responsive-list tbody td .mgmt-entity-copy .link{overflow-wrap:anywhere}
 .management-panel .responsive-list tbody td:first-child:before{display:none}
 .management-panel .responsive-list tbody td.mgmt-actions-cell{display:block;text-align:right!important}
 .management-panel .responsive-list tbody td.mgmt-actions-cell:before{display:none}
 .management-panel .mgmt-row-actions,.management-panel .management-table .staff-row-actions{display:flex;justify-content:stretch;gap:7px;flex-wrap:wrap;align-items:center}
 .management-panel .mgmt-row-actions .mgmt-action{flex:1 1 auto;min-height:40px;padding:9px 9px!important;font-size:.74rem}
 .management-panel .responsive-list .mgmt-avatar{width:33px;height:33px;flex-basis:33px}
 .management-panel .management-table .pill{font-size:.73rem}
 .management-panel .management-table td.mgmt-money{font-size:.87rem}
 .management-panel .mgmt-empty{padding:22px!important}
}
@media (max-width:360px){
 .management-panel .mgmt-check{flex:1 1 auto}
 .management-panel .contact-filter{flex:1 1 100%}
 .management-panel .mgmt-count{margin-left:auto}
 .management-panel .mgmt-row-actions .mgmt-action{font-size:.72rem}
}

/* Cari list is server-paged: compact controls and accessible small-screen pagination. */
.mgmt-pager{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:14px 18px;border-top:1px solid #e6eaf0;color:#64748b;font-size:.8rem}
.mgmt-pager-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mgmt-pager-actions select{width:82px;min-width:82px;padding:7px 9px}
.mgmt-pager-actions .btn:disabled{opacity:.43;cursor:not-allowed}
.contact-more-wrap{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;margin:12px 0 4px;padding:10px 12px;color:#64748b;font-size:.8rem}
@media(max-width:620px){.mgmt-pager{align-items:flex-start;padding:12px}.mgmt-pager-actions{width:100%;justify-content:space-between}.contact-more-wrap{flex-direction:column;align-items:stretch;text-align:center}}

/* Cari Hesaplar: condensed ledger-first view. Other management tables unchanged. */
.contact-list-panel .contact-toolbar{padding:11px 14px;gap:9px}
.contact-list-panel .mgmt-search-wrap{min-height:38px}
.contact-list-panel .mgmt-search-wrap .input{height:36px}
.contact-list-panel .contact-filter select,.contact-list-panel .mgmt-check{height:38px;min-height:38px}
.contact-list-panel .mgmt-count{background:#edf2f7;color:#52657d;font-size:.72rem;padding:7px 10px}
.contact-list-panel .contact-grid-scroll{max-height:min(56vh,505px);min-height:0;overflow-y:auto;overflow-x:auto;scrollbar-gutter:stable;overscroll-behavior:contain;outline-offset:-3px}
.contact-list-panel .contact-grid-scroll:focus-visible{outline:2px solid #bd9c67}
.contact-list-panel .contact-management-table{width:100%;table-layout:fixed;min-width:760px;border-collapse:separate;border-spacing:0}
.contact-list-panel .contact-col-identity{width:44%}
.contact-list-panel .contact-col-category{width:14%}
.contact-list-panel .contact-col-date{width:13%}
.contact-list-panel .contact-col-balance{width:18%}
.contact-list-panel .contact-col-actions{width:11%}
.contact-list-panel .contact-management-table thead th{position:sticky;top:0;z-index:3;background:#f6f8fb;border-bottom:1px solid #e4e9ef;padding:9px 10px;font-size:.69rem;letter-spacing:0;line-height:1.3}
.contact-list-panel .contact-management-table tbody td{height:51px;padding:6px 10px;line-height:1.25;border-bottom:1px solid #edf0f4;vertical-align:middle;white-space:nowrap}
.contact-list-panel .contact-management-table th:first-child,.contact-list-panel .contact-management-table td:first-child{padding-left:14px}
.contact-list-panel .contact-management-table th:last-child,.contact-list-panel .contact-management-table td:last-child{padding-right:14px}
.contact-list-panel .contact-management-table tbody tr:last-child td{border-bottom:none}
.contact-list-panel .contact-identity{display:flex;flex-direction:column;gap:3px;min-width:0;max-width:100%;align-items:flex-start}
.contact-list-panel .contact-management-table .contact-name{display:block;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.80rem;line-height:1.27;font-weight:800}
.contact-list-panel .contact-subtext{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.67rem;color:#8996a8}
.contact-list-panel .mgmt-category{padding:4px 7px;font-size:.67rem;font-weight:730}
.contact-list-panel .contact-cell-date{font-size:.72rem;white-space:nowrap}
.contact-list-panel .contact-balance{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:3px;min-width:0;text-align:right}
.contact-list-panel .contact-balance .mgmt-money{font-size:.80rem;line-height:1.15;white-space:nowrap;font-weight:850;color:#273e58;font-variant-numeric:tabular-nums}
.contact-list-panel .contact-balance-hint{font-size:.66rem;line-height:1.1;font-weight:700;white-space:nowrap}
.contact-list-panel .contact-balance-hint.credit{color:#168166}
.contact-list-panel .contact-balance-hint.debit{color:#bb5360}
.contact-list-panel .contact-balance-hint.neutral{color:#77869b}
.contact-list-panel .mgmt-row-actions{gap:5px}
.contact-list-panel .mgmt-action.contact-open{min-height:31px;padding:5px 10px!important;font-size:.74rem}
.contact-list-panel .mgmt-action.contact-delete{width:31px;height:31px;min-height:31px;padding:5px!important;background:transparent;border:1px solid transparent;color:#929eac;flex:0 0 31px}
.contact-list-panel .mgmt-action.contact-delete:hover,.contact-list-panel .mgmt-action.contact-delete:focus-visible{color:#b34e59;border-color:#f1d5d8;background:#fff6f6}
.contact-list-panel .contact-pager{padding:9px 14px;min-height:55px;background:#fff;gap:10px}
.contact-list-panel .contact-pager-caption{font-variant-numeric:tabular-nums;color:#63778b;font-size:.75rem}
.contact-list-panel .contact-pager .mgmt-pager-actions{gap:7px}
.contact-list-panel .contact-pager .mgmt-pager-actions select{width:69px;min-width:69px;min-height:34px;padding:5px 7px}
.contact-list-panel .contact-pager .btn{min-height:34px;padding:6px 11px}
@media(max-width:1050px) and (min-width:601px){
 .contact-list-panel .contact-management-table{min-width:680px}
 .contact-list-panel .contact-col-date,.contact-list-panel .contact-cell-date{display:none}
 .contact-list-panel .contact-col-identity{width:46%}
 .contact-list-panel .contact-col-category{width:17%}
 .contact-list-panel .contact-col-balance{width:23%}
 .contact-list-panel .contact-col-actions{width:14%}
}
@media(max-width:600px){
 .contact-list-panel .contact-grid-scroll{max-height:min(57vh,480px);overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable}
 .contact-list-panel .contact-management-table.responsive-list{display:block;width:100%;min-width:0;table-layout:auto}
 .contact-list-panel .contact-management-table.responsive-list colgroup,.contact-list-panel .contact-management-table.responsive-list thead{display:none}
 .contact-list-panel .contact-management-table.responsive-list tbody{display:block;padding:0}
 .contact-list-panel .contact-management-table.responsive-list tbody tr.contact-compact-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"identity actions" "category balance";column-gap:10px;row-gap:4px;align-items:center;border:0;border-bottom:1px solid #e9edf2;border-radius:0;box-shadow:none;padding:9px 12px;min-height:86px;background:#fff}
 .contact-list-panel .contact-management-table.responsive-list tbody tr.contact-compact-row:nth-child(even){background:#fcfdff}
 .contact-list-panel .contact-management-table.responsive-list tbody tr.contact-compact-row td{height:auto;min-height:0;padding:0!important;display:block;min-width:0;border:0;background:transparent!important;white-space:normal}
 .contact-list-panel .contact-management-table.responsive-list tbody tr.contact-compact-row td:before{display:none}
 .contact-list-panel .contact-management-table.responsive-list tbody tr.contact-compact-row td.contact-cell-identity{grid-area:identity;text-align:left}
 .contact-list-panel .contact-management-table.responsive-list tbody tr.contact-compact-row td.contact-cell-category{grid-area:category;text-align:left}
 .contact-list-panel .contact-management-table.responsive-list tbody tr.contact-compact-row td.contact-cell-date{display:none}
 .contact-list-panel .contact-management-table.responsive-list tbody tr.contact-compact-row td.contact-cell-balance{grid-area:balance;text-align:right}
 .contact-list-panel .contact-management-table.responsive-list tbody tr.contact-compact-row td.contact-cell-actions{grid-area:actions;text-align:right}
 .contact-list-panel .contact-management-table .contact-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow:hidden;overflow-wrap:anywhere;font-size:.78rem;line-height:1.25}
 .contact-list-panel .contact-management-table .contact-subtext{margin-top:2px}
 .contact-list-panel .contact-management-table .mgmt-row-actions{display:flex;gap:3px;flex-wrap:nowrap;justify-content:flex-end}
 .contact-list-panel .contact-management-table .mgmt-row-actions .mgmt-action{flex:0 0 auto;min-height:33px}
 .contact-list-panel .contact-management-table .contact-cell-balance .contact-balance{display:flex;flex-direction:row;gap:7px;align-items:baseline;justify-content:flex-end}
 .contact-list-panel .contact-management-table .contact-balance .mgmt-money{font-size:.77rem}
 .contact-list-panel .contact-management-table .contact-balance-hint{font-size:.66rem}
 .contact-list-panel .contact-pager{align-items:center;padding:9px 12px;gap:8px}
 .contact-list-panel .contact-pager .mgmt-pager-actions{width:auto;justify-content:flex-end;gap:5px}
 .contact-list-panel .contact-pager .mgmt-pager-actions label{display:none}
 .contact-list-panel .contact-pager .btn{padding:6px 8px;font-size:.70rem}
 .contact-list-panel .contact-pager-page{display:none}
}
@media(max-width:410px){
 .contact-list-panel .contact-pager{flex-wrap:wrap}
 .contact-list-panel .contact-pager .mgmt-pager-actions{margin-left:auto}
 .contact-list-panel .contact-management-table.responsive-list tbody tr.contact-compact-row{column-gap:5px;padding-inline:9px}
 .contact-list-panel .contact-management-table .contact-cell-balance .contact-balance{gap:5px}
 .contact-list-panel .contact-management-table .contact-balance .mgmt-money{font-size:.74rem}
}
@media(max-width:600px){
 .contact-list-panel .contact-management-table.responsive-list .contact-compact-row .mgmt-row-actions .mgmt-action.contact-open{width:42px;min-width:42px;flex:0 0 42px!important;padding:4px 6px!important}
 .contact-list-panel .contact-management-table.responsive-list .contact-compact-row .mgmt-row-actions .mgmt-action.contact-delete{width:33px;min-width:33px;flex:0 0 33px!important;padding:4px!important}
}


/* Unified density and header/column alignment across contact, staff, users. */
@media(min-width:601px){
 .management-panel .management-table{table-layout:fixed}
 .management-panel .management-table thead th{height:43px;vertical-align:middle}
 .management-panel .management-table tbody tr:not([hidden]){height:56px}
 .management-panel .management-table tbody tr:not([hidden])>td{height:56px;vertical-align:middle;padding-top:8px;padding-bottom:8px}
 .management-panel .management-table th.align-end,.management-panel .management-table th.contact-heading-balance{text-align:right}
 .management-panel .management-table th.align-end .mgmt-sort,.management-panel .management-table th.contact-heading-balance .mgmt-sort{width:100%;display:flex;justify-content:flex-end;text-align:right}
 .management-panel .management-table .mgmt-actions-cell,.management-panel .management-table .th-actions{text-align:right}
 .management-panel .contact-management-table{min-width:780px}
 .management-panel .staff-table{min-width:1090px}
 .management-panel .user-management-table{min-width:820px}
 .management-panel .staff-table .staff-col-person{width:27%}
 .management-panel .staff-table .staff-col-money{width:11.5%}
 .management-panel .staff-table .staff-col-status{width:10%}
 .management-panel .staff-table .staff-col-actions{width:17%}
 .management-panel .user-management-table .user-col-identity{width:34%}
 .management-panel .user-management-table .user-col-role{width:14%}
 .management-panel .user-management-table .user-col-permissions{width:22%}
 .management-panel .user-management-table .user-col-status{width:12%}
 .management-panel .user-management-table .user-col-actions{width:18%}
 .management-panel .mgmt-row-actions{justify-content:flex-end}
 .management-panel .management-table td:first-child .mgmt-entity{min-width:0}
 .management-panel .staff-table .mgmt-entity-copy .link,
 .management-panel .user-management-table .mgmt-entity-copy>strong{max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .management-panel .user-management-table .mgmt-actions-cell .btn{margin-left:auto}
}
/* Phone: staff and user rows use two-column information cards rather than long stacks. */
@media(max-width:600px){
 .management-panel .mgmt-check{order:initial;width:auto;flex:0 0 auto}
 .management-panel .mgmt-search-wrap{order:0}
 .management-panel .mgmt-count{order:initial;margin-left:auto}
 .management-panel .staff-table.responsive-list tbody,
 .management-panel .user-management-table.responsive-list tbody{gap:9px;padding:10px}
 .management-panel .staff-table.responsive-list tbody tr[data-filter-text],
 .management-panel .user-management-table.responsive-list tbody tr[data-filter-text]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;
  padding:0;min-height:0;box-shadow:0 3px 14px #20354b0a}
 .management-panel .staff-table.responsive-list tbody tr[data-filter-text]>td,
 .management-panel .user-management-table.responsive-list tbody tr[data-filter-text]>td{
  min-width:0;height:auto!important;max-width:100%;border-bottom:1px solid #edf1f5;
  padding:10px 12px!important;display:flex;flex-direction:column;align-items:flex-start;gap:5px;
  justify-content:center;text-align:left!important;white-space:normal}
 .management-panel .staff-table.responsive-list tbody tr[data-filter-text]>td::before,
 .management-panel .user-management-table.responsive-list tbody tr[data-filter-text]>td::before{
  display:block;content:attr(data-label);max-width:100%;color:#8798ab;font-size:.68rem;
  font-weight:740;line-height:1.2}
 .management-panel .staff-table.responsive-list tbody tr[data-filter-text]>td:first-child,
 .management-panel .user-management-table.responsive-list tbody tr[data-filter-text]>td:first-child{
  grid-column:1/-1;flex-direction:row;justify-content:flex-start;align-items:center;
  padding:12px!important;background:#f7f9fc!important}
 .management-panel .staff-table.responsive-list tbody tr[data-filter-text]>td:first-child::before,
 .management-panel .user-management-table.responsive-list tbody tr[data-filter-text]>td:first-child::before{display:none}
 .management-panel .staff-table.responsive-list tbody tr[data-filter-text]>td.mgmt-actions-cell,
 .management-panel .user-management-table.responsive-list tbody tr[data-filter-text]>td.mgmt-actions-cell{
  grid-column:1/-1;padding:9px 12px!important;background:#fcfdff!important;border-bottom:0;align-items:stretch}
 .management-panel .staff-table.responsive-list tbody tr[data-filter-text]>td.mgmt-actions-cell::before,
 .management-panel .user-management-table.responsive-list tbody tr[data-filter-text]>td.mgmt-actions-cell::before{display:none}
 .management-panel .staff-table.responsive-list .staff-cell-status,
 .management-panel .user-management-table.responsive-list .mgmt-permissions{grid-column:1/-1}
 .management-panel .staff-table.responsive-list .staff-cell-status{flex-direction:row!important;justify-content:space-between!important;align-items:center!important}
 .management-panel .staff-table.responsive-list .mgmt-row-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:6px;width:100%}
 .management-panel .staff-table.responsive-list .mgmt-row-actions .mgmt-action{width:100%;min-width:0;min-height:40px;flex:initial;font-size:.71rem;padding:8px 7px!important}
 .management-panel .user-management-table.responsive-list .mgmt-actions-cell .btn{width:100%;min-height:42px}
 .management-panel .user-management-table.responsive-list .user-role-cell,
 .management-panel .user-management-table.responsive-list .user-status-cell{grid-column:auto}
 .management-panel .user-management-table.responsive-list .mgmt-permissions{display:flex}
 .management-panel .contact-grid-scroll{max-height:min(62dvh,570px)}
 .management-panel .contact-management-table.responsive-list tbody tr.contact-compact-row{min-height:79px}
 .management-panel .contact-management-table.responsive-list tbody tr.contact-compact-row td.contact-cell-balance{align-self:end}
}
@media(max-width:360px){
 .management-panel .staff-table.responsive-list .mgmt-row-actions{grid-template-columns:1fr 1fr}
 .management-panel .staff-table.responsive-list .mgmt-row-actions .mgmt-danger{grid-column:1/-1}
}

/* Prevent wide desktop/tablet tables from inflating the document viewport.
   Their own horizontal scrollbar remains available. */
@media(min-width:601px){
 .management-panel .mgmt-scroll{contain:layout paint}
}

/* Final alignment corrections from real 390/1440px Chromium inspection. */
.management-panel .mgmt-search-wrap>.icon{position:static;left:auto;top:auto;transform:none;pointer-events:none}
@media(min-width:601px){
 .management-panel .staff-table{min-width:1150px}
 .management-panel .staff-table .staff-col-person{width:22%}
 .management-panel .staff-table .staff-col-money{width:10.5%}
 .management-panel .staff-table .staff-col-status{width:11%}
 .management-panel .staff-table .staff-col-actions{width:25%}
}

/* Personel / Kullanıcı: same scroll and fixed paging pattern as Cari Hesaplar. */
.management-panel .mgmt-paged-scroll{max-height:min(54vh,490px);min-height:0;overflow-y:auto;overflow-x:auto;overscroll-behavior:contain;scrollbar-gutter:stable;contain:none}
.management-panel .mgmt-paged-scroll .management-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0}
.management-panel .mgmt-paged-scroll .management-table thead th{position:sticky;top:0;background:#f6f8fa;z-index:3;border-bottom:1px solid #e0e7ee;padding:9px 12px;font-size:.70rem}
.management-panel .mgmt-paged-scroll .management-table tbody td{height:52px;padding:7px 12px;line-height:1.25;vertical-align:middle}
.management-panel .mgmt-paged-scroll .management-table .mgmt-entity-copy .link,
.management-panel .mgmt-paged-scroll .management-table .mgmt-entity-copy>strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:100%}
.management-panel .mgmt-paged-scroll .management-table .mgmt-entity{min-width:0;max-width:100%}
.management-panel .mgmt-paged-scroll .staff-table{min-width:1100px}
.management-panel .mgmt-paged-scroll .user-management-table{min-width:750px}
.management-panel .mgmt-paged-scroll .staff-col-person{width:26%}
.management-panel .mgmt-paged-scroll .staff-col-money{width:12%}
.management-panel .mgmt-paged-scroll .staff-col-status{width:11%}
.management-panel .mgmt-paged-scroll .staff-col-actions{width:15%}
.management-panel .mgmt-paged-scroll .user-col-identity{width:35%}
.management-panel .mgmt-paged-scroll .user-col-role{width:14%}
.management-panel .mgmt-paged-scroll .user-col-permissions{width:22%}
.management-panel .mgmt-paged-scroll .user-col-status{width:11%}
.management-panel .mgmt-paged-scroll .user-col-actions{width:18%}
.management-panel .mgmt-paged-scroll .management-table td.num,
.management-panel .mgmt-paged-scroll .management-table th.align-end{text-align:right;font-variant-numeric:tabular-nums}
.management-panel .mgmt-paged-scroll .management-table th.align-end .mgmt-sort{justify-content:flex-end;width:100%}
.management-panel .mgmt-paged-scroll .management-table td.mgmt-actions-cell{text-align:right}
.management-panel .mgmt-paged-scroll .mgmt-row-actions{justify-content:flex-end;gap:5px}
.management-panel .mgmt-paged-scroll .mgmt-action{min-height:31px;padding:6px 7px!important;font-size:.71rem}
.management-panel .mgmt-paged-scroll .mgmt-avatar{width:30px;height:30px;flex-basis:30px}
.management-panel .mgmt-paged-scroll .mgmt-avatar .icon{width:16px;height:16px}
.management-panel .mgmt-paged-scroll + .mgmt-pager{position:relative;z-index:2;background:#fff}
@media(max-width:600px){
 .management-panel .mgmt-paged-scroll:has(.responsive-list){overflow-y:auto;overflow-x:hidden;max-height:min(51dvh,490px);scrollbar-gutter:stable}
 .management-panel .mgmt-paged-scroll .responsive-list{min-width:0;display:block;table-layout:auto}
 .management-panel .mgmt-paged-scroll .responsive-list tbody td{height:auto;min-height:0;white-space:normal}
 .management-panel .mgmt-paged-scroll .responsive-list colgroup{display:none}
 .management-panel .mgmt-paged-scroll .responsive-list .mgmt-entity-copy .link,
 .management-panel .mgmt-paged-scroll .responsive-list .mgmt-entity-copy>strong{white-space:normal;overflow-wrap:anywhere}
 .management-panel .mgmt-paged-scroll .responsive-list tbody{padding:10px;gap:8px}
 .management-panel .mgmt-paged-scroll .responsive-list tbody tr{margin:0}
 .management-panel .mgmt-pager{padding:10px 12px;gap:6px}
}

/* Respect the staff summary cards above the list: keep desktop paginator in view. */
@media(min-width:901px){
 .staff-list-panel .mgmt-paged-scroll{max-height:clamp(190px,calc(100dvh - 525px),420px)}
 .user-list-panel .mgmt-paged-scroll{max-height:min(56dvh,505px)}
}

/* 12.11.2026: compact full-height personnel, month matrix, editable contact calendar. */
body.staff-view{height:100dvh;overflow:hidden}
.staff-view #root,.staff-view .app-shell{height:100dvh;min-height:0;overflow:hidden}
.staff-view .main-wrap{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.staff-view .content-wrap{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding-top:12px;padding-bottom:7px}
.staff-view .content-head{flex:0 0 auto;margin-bottom:11px}
.staff-view .content-head h1{font-size:1.52rem;margin:4px 0}
.staff-view #page-content{min-height:0;flex:1 1 auto;display:grid;grid-template-rows:auto minmax(0,1fr);gap:9px;overflow:hidden}
.staff-view #page-content>.summary-grid{margin-bottom:0!important;gap:9px}
.staff-view #page-content>.summary-grid .summary-card{min-height:0;height:78px;padding:10px 14px;border-radius:12px}
.staff-view #page-content>.summary-grid .summary-card .value{font-size:1.35rem;margin-block:2px}
.staff-view #page-content>.summary-grid .summary-card .tag{font-size:.66rem}
.staff-view #page-content>.summary-grid .summary-card .miniico{width:27px;height:27px}
.staff-view .staff-list-panel{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.staff-view .staff-list-panel .panel-hd{flex:0 0 auto;padding:10px 17px 7px}
.staff-view .staff-list-panel .panel-hd h2{font-size:.92rem}
.staff-view .staff-list-panel .panel-hd p{margin-top:2px;font-size:.7rem}
.staff-view .staff-list-panel .mgmt-small-toolbar{flex:0 0 auto;padding:6px 12px}
.staff-view .staff-list-panel .mgmt-search-wrap{min-height:34px}
.staff-view .staff-list-panel .mgmt-search-wrap .input{height:32px}
.staff-view .staff-list-panel .mgmt-paged-scroll{flex:1 1 auto;min-height:0;max-height:none!important;overflow-y:auto!important;overflow-x:auto!important}
.staff-view .staff-list-panel .mgmt-pager{flex:0 0 auto}
.staff-view .staff-list-panel .management-table th{padding-block:8px}
.staff-view .staff-list-panel .management-table td{padding-block:7px}
.staff-view .staff-list-panel .mgmt-avatar{width:28px;height:28px;flex-basis:28px}
.staff-view .footer{flex:0 0 auto;padding-block:7px}
@media(max-width:900px){
 .staff-view #page-content>.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .staff-view #page-content>.summary-grid .summary-card{height:55px;padding:6px 9px}
 .staff-view #page-content>.summary-grid .summary-card .value{font-size:1.08rem}
 .staff-view #page-content>.summary-grid .summary-card .tag,.staff-view #page-content>.summary-grid .summary-card .miniico{display:none}
}
@media(max-width:600px){
 .staff-view .content-wrap{padding:7px 10px 3px}
 .staff-view .content-head{margin-bottom:6px}
 .staff-view .content-head h1{font-size:1.22rem}
 .staff-view #page-content{gap:6px}
 .staff-view .staff-list-panel .mgmt-paged-scroll:has(.responsive-list){max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important}
 .staff-view .staff-list-panel .mgmt-toolbar{padding:6px 9px}
 .staff-view .footer{padding:4px 10px}
}
/* Month is the only matrix view. On wide monitors all days fit without horizontal scrolling. */
#meal-table-host .meal-view-tools.meal-month-only{gap:9px;margin-bottom:8px}
#meal-table-host .meal-month-tip{margin-left:auto;color:#73859a;font-size:.71rem}
#meal-table-host .meal-scroll.is-month{min-height:0;max-height:min(72dvh,710px);overflow-y:auto;overflow-x:auto}
#meal-table-host .meal-scroll.is-month .meal-grid{width:100%!important;min-width:0!important;table-layout:fixed}
#meal-table-host .meal-scroll.is-month .meal-grid .meal-customer{width:145px!important;min-width:145px!important;max-width:145px!important;padding:5px 7px}
#meal-table-host .meal-scroll.is-month .meal-grid .meal-row-total{width:65px!important;min-width:65px!important;max-width:65px!important;padding-inline:2px;font-size:.74rem}
#meal-table-host .meal-scroll.is-month .meal-grid th:not(.meal-customer):not(.meal-row-total),
#meal-table-host .meal-scroll.is-month .meal-grid td:not(.meal-customer):not(.meal-row-total){width:calc((100% - 210px) / var(--month-days))!important;min-width:0!important;max-width:none!important;padding:0!important}
#meal-table-host .meal-grid .meal-entry{height:35px;min-height:35px;line-height:35px;font-size:.7rem;padding:0!important}
#meal-table-host .meal-grid .meal-readonly{height:35px}
#meal-table-host .meal-grid thead th{padding:5px 0;font-size:.64rem}
#meal-table-host .meal-grid th .meal-day-no{font-size:.69rem}
#meal-table-host .meal-grid th small{font-size:.56rem;margin-top:0}
#meal-table-host .meal-grid tfoot th,#meal-table-host .meal-grid tfoot td{padding:6px 0;font-size:.69rem}
#meal-table-host .meal-grid .meal-customer-link{font-size:.72rem}
@media(max-width:1250px){
 #meal-table-host .meal-scroll.is-month .meal-grid{width:1120px!important;min-width:1120px!important}
}
@media(max-width:600px){
 #meal-table-host .meal-scroll.is-month .meal-grid{width:1050px!important;min-width:1050px!important}
 #meal-table-host .meal-month-tip{display:none}
 #meal-table-host .meal-scroll.is-month .meal-grid .meal-customer{width:125px!important;min-width:125px!important;max-width:125px!important}
 #meal-table-host .meal-scroll.is-month .meal-grid .meal-row-total{width:64px!important;min-width:64px!important;max-width:64px!important}
 #meal-table-host .meal-grid .meal-entry{font-size:.74rem}
}
/* Clean compact daily cells within a cari detail: no nested quantity modal. */
.modal-card.detail-dialog .detail-tab-pane:has(.contact-meal-history){padding:10px 15px 12px}
.contact-meal-history{padding:0 0 4px}
.contact-meal-head{padding:9px 12px;margin-bottom:9px;gap:8px;border-radius:10px}
.contact-meal-label{font-size:.6rem}
.contact-meal-head h3{font-size:1.2rem;margin:2px 0}
.contact-meal-head h3 small{font-size:.68rem}
.contact-meal-head p{font-size:.68rem}
.contact-month-picker button{width:30px;height:30px;font-size:1.05rem}
.contact-meal-weekdays,.contact-meal-calendar{gap:3px}
.contact-meal-weekdays{margin-bottom:3px}
.contact-meal-weekdays span{font-size:.61rem;padding:2px}
.contact-meal-cell{min-height:43px;height:43px;padding:2px 1px;border-radius:6px;gap:0}
.contact-meal-day{font-size:.63rem;line-height:1.15}
.contact-meal-input{display:block;width:100%;min-width:0;height:25px;text-align:center;font-size:.85rem;font-weight:850;border:0;border-radius:4px;outline:0;background:transparent;color:#33617d;font-variant-numeric:tabular-nums}
.contact-meal-input.filled{color:#166f54}
.contact-meal-input::placeholder{color:#a5b1bf}
.contact-meal-input:hover{background:#fff4e2}
.contact-meal-input:focus{outline:2px solid #b58d58;outline-offset:-2px;background:#fffbf2}
.contact-meal-input.is-saving{background:#eaf3ff}
.contact-meal-input.is-error{background:#fff0f0;outline:2px solid #cf5664}
.contact-meal-save-status[data-status='saved']{color:#18845f;font-weight:800}
.contact-meal-save-status[data-status='error']{color:#bc4151;font-weight:800}
.contact-meal-help{padding-top:8px;font-size:.68rem;gap:5px;flex-wrap:wrap}
@media(max-width:600px){
 .modal-card.detail-dialog .detail-tab-pane:has(.contact-meal-history){padding:7px 10px}
 .contact-meal-cell{min-height:39px;height:39px;padding:1px}
 .contact-meal-input{height:24px;font-size:16px}
 .contact-meal-head h3{font-size:1.06rem}
 .contact-month-picker strong{min-width:95px;font-size:.71rem}
}
@media(min-width:1251px){#meal-table-host .meal-scroll.is-month{overflow-x:hidden}}
/* Ultra-small phones: keep at least a few employee rows visible. */
@media(max-width:420px){
 .staff-view .content-head{min-height:0;margin-bottom:4px}
 .staff-view .content-head .eyebrow,.staff-view .content-head p{display:none}
 .staff-view .content-head h1{font-size:1.12rem;line-height:1.12;margin:0}
 .staff-view .content-head .btn{padding:6px 9px;min-height:30px}
 .staff-view #page-content>.summary-grid{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(140px,1fr);grid-template-columns:none;gap:5px;overflow-x:auto;scrollbar-width:thin;min-height:0}
 .staff-view #page-content>.summary-grid .summary-card{height:49px;padding:5px 8px}
 .staff-view .staff-list-panel .panel-hd{padding:7px 10px 4px}
 .staff-view .staff-list-panel .panel-hd p{display:none}
 .staff-view .staff-list-panel .management-table th{padding-block:4px}
 .staff-view .staff-list-panel .mgmt-small-toolbar{padding:4px 8px}
 .staff-view .staff-list-panel .mgmt-pager{padding-block:5px}
 .staff-view .footer{display:none}
}
