/* V54 — global activity review and monthly staff reimbursements */
.v54-control-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:1.5rem;margin-bottom:1.4rem}.v54-control-heading h2{margin:.35rem 0 .6rem}.v54-control-heading p{max-width:55rem;margin:0;color:#45606a}.v54-control-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem}.v54-control-button{border:1px solid #fff4!important;border-radius:999px!important;color:white!important;font-weight:750!important;padding:.65rem 1rem!important;min-height:40px;line-height:1.3!important;box-shadow:inset 0 2px 2px #fff5,0 3px 7px #1232;white-space:normal!important;text-align:center}.v54-control-blue{background:linear-gradient(#527eab,#245280)!important}.v54-control-teal{background:linear-gradient(#3c8d73,#176448)!important}.v54-control-gold{background:linear-gradient(#b18a46,#77551f)!important}.v54-control-plum{background:linear-gradient(#946bab,#65427d)!important}.v54-control-red{background:linear-gradient(#b34b67,#8b2041)!important}.v54-control-button:disabled{opacity:.55;cursor:not-allowed}.v54-control-filters{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));align-items:end;gap:1rem;padding:1.2rem;background:#e8eff4;border:1px solid #c0ced9;border-radius:14px}.v54-control-filters label{display:grid;gap:.4rem;font-weight:700;font-size:.9rem}.v54-control-filters input,.v54-control-filters select{width:100%;min-width:0;padding:.7rem;border:1px solid #aabbc9;border-radius:9px;color:#173a4a;background:#fff;min-height:44px}.v54-control-count{color:#526773;font-size:.85rem}.v54-control-table{overflow:auto;border:1px solid #b8c9d2;border-radius:12px}.v54-control-table table{width:100%;border-collapse:collapse;font-size:.88rem;min-width:800px}.v54-control-table th{background:#d8e5ee;color:#234858;text-align:left;font-size:.78rem;text-transform:uppercase;letter-spacing:.035em;padding:.8rem}.v54-control-table td{padding:.9rem;border-bottom:1px solid #cbd8e0;vertical-align:top;overflow-wrap:anywhere}.v54-control-table tr:nth-child(even){background:#edf3f7}.v54-control-table td small{display:block;margin-top:.35rem;color:#546976;font-size:.77rem}.v54-control-table time{white-space:nowrap}.v54-control-table td:last-child{max-width:500px}.v54-control-pagination{display:flex;justify-content:flex-end;align-items:center;gap:.7rem;margin-top:1rem}.v54-control-pagination span{margin-right:auto}.v54-review-filters{grid-template-columns:repeat(4,minmax(140px,1fr))}.v54-review-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin:1.3rem 0}.v54-review-totals article{padding:1.1rem;border:1px solid #c4cfd5;background:#edf4ef;border-radius:12px;display:grid;gap:.4rem}.v54-review-totals article:first-child{background:#fff4dd}.v54-review-totals article:last-child{background:#f6e9ef}.v54-review-totals strong{font-size:1.5rem}.v54-review-status{display:inline-block;padding:.35rem .6rem;font-weight:750;border-radius:999px;border:1px solid #b5c7d2;background:#edf2f5;color:#244350;white-space:nowrap}.v54-review-approved{background:#dcefe3;border-color:#8bb99d;color:#20543b}.v54-review-submitted{background:#fff0cf;border-color:#cca460;color:#67460e}.v54-review-rejected,.v54-review-cancelled{background:#f6e1e8;border-color:#ca96a7;color:#7e2b47}.v54-review-modal{max-width:100%;min-width:0}.v54-review-details dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem}.v54-review-details dt{font-size:.8rem;font-weight:700;color:#526c76}.v54-review-details dd{margin:.4rem 0 0;overflow-wrap:anywhere}.v54-control-footer{position:sticky;bottom:-1px;background:#f4f8fa;border-top:1px solid #b9cdd7;padding:1rem 0;margin-top:1.2rem;display:flex;gap:.6rem;flex-wrap:wrap;z-index:2}.v54-receipt-frame{width:100%;height:62vh;border:1px solid #becdd4;border-radius:10px;background:white}.v54-receipt-image{display:block;max-width:100%;max-height:64vh;object-fit:contain;margin:auto}.v54-workforce-alert{margin-bottom:1.1rem;border:1px solid #c4ad77;border-left:5px solid #a67b31;background:#fff7e8;border-radius:12px;padding:1rem 1.2rem;display:flex;justify-content:space-between;align-items:center;gap:1rem;color:#574422}.v54-workforce-alert small{display:block;margin-top:.3rem}.v54-notification-list{display:grid;gap:.8rem}.v54-notification-list article{display:grid;gap:.65rem;padding:1rem;border-radius:12px;border:1px solid #b4c9d4;background:#eaf2f5}.v54-notification-list small{color:#48616d}.v54-review-modal textarea{min-height:120px;width:100%}@media(max-width:800px){.v54-control-heading{display:block}.v54-control-heading>.v54-control-actions{margin-top:1rem}.v54-control-filters,.v54-review-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.v54-review-totals{gap:.5rem}.v54-review-totals strong{font-size:1.15rem}.v54-workforce-alert{align-items:flex-start}.v54-review-details dl{grid-template-columns:1fr}}@media(max-width:480px){.v54-control-filters{grid-template-columns:1fr}.v54-review-totals{grid-template-columns:1fr}.v54-workforce-alert{display:block}.v54-workforce-alert button{margin-top:.8rem}}

/* V56: one compact review register, one open colleague, one receipt surface. */
#v35-team .v54-control-blue,#modal .v54-control-blue{background:linear-gradient(#527eab,#245280)!important}
#v35-team .v54-control-teal,#modal .v54-control-teal{background:linear-gradient(#3c8d73,#176448)!important}
#v35-team .v54-control-gold,#modal .v54-control-gold{background:linear-gradient(#b18a46,#77551f)!important}
#v35-team .v54-control-plum,#modal .v54-control-plum{background:linear-gradient(#946bab,#65427d)!important}
#v35-team .v54-control-red,#modal .v54-control-red{background:linear-gradient(#b34b67,#8b2041)!important}
#v35-team .v54-control-orange,#modal .v54-control-orange{background:linear-gradient(#bf743f,#97491b)!important}
#v35-team .v54-control-slate,#modal .v54-control-slate{background:linear-gradient(#70818c,#485b68)!important}
.v56-review-overview{border:1px solid #b9cabb;border-radius:15px;background:linear-gradient(115deg,#faf6eb,#edf5ef);padding:18px 22px;margin:0 0 20px;display:grid;grid-template-columns:minmax(240px,1fr) 2fr;gap:20px;align-items:center}
.v56-review-overview>div>strong{font-size:17px;color:#284c43}.v56-review-quick{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}.v56-review-quick .button{font-size:12px;padding:6px 12px!important;min-height:34px}.v56-review-overview dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0}.v56-review-overview dt{font-size:12px;color:#526961;line-height:1.4}.v56-review-overview dd{margin:6px 0 0;font-size:21px;font-weight:800;color:#284c43;white-space:nowrap}.v56-review-overview dl>div:first-child dd{color:#8c5b12}
.v56-person-search{display:grid;gap:7px;font-size:13px;font-weight:700;margin:15px 0;max-width:420px}.v56-person-search input{padding:11px 13px;border:1px solid #b8c9d2;background:#fff;border-radius:10px;font:inherit;width:100%;min-width:0}
.v56-review-directory{display:grid;gap:8px}.v56-review-person{border:1px solid #bbcbd2;border-radius:12px;background:#f9fcfd;overflow:hidden}.v56-person-toggle{display:flex;gap:13px;align-items:center;width:100%;text-align:left;padding:15px 17px;border:0;background:linear-gradient(100deg,#f4f8fa,#edf3f1);color:#24424d;font:inherit;cursor:pointer;box-shadow:none;border-radius:0}.v56-person-toggle[aria-expanded=true]{background:#e3eee7;border-bottom:1px solid #bbd0c2}.v56-person-toggle>span:nth-child(2){flex:1;min-width:0}.v56-person-toggle strong{display:block;font-size:15px}.v56-person-toggle small{display:block;font-size:12px;margin-top:4px;color:#536c72}.v56-person-caret{color:#3b7660;font-size:22px}.v56-person-totals{text-align:right;flex:none}.v56-person-content{padding:18px}.v56-history-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:15px}.v56-history-controls>label{display:grid;gap:5px;font-size:12px;font-weight:700;min-width:130px}.v56-history-controls select{padding:9px 11px;border:1px solid #afc1cb;border-radius:8px;background:#fff;font:inherit;min-height:40px;color:#24424d}.v56-history-controls button{font-size:12px}.v56-review-months{display:flex;gap:6px;flex-wrap:wrap}.v56-review-months .button{font-size:12px;padding:6px 11px!important;min-height:34px}.v56-review-months .button[aria-pressed=true]{outline:2px solid #29664e;outline-offset:2px}.v56-person-month-heading{display:flex;justify-content:space-between;align-items:center;margin:18px 0 10px;gap:10px;text-transform:capitalize}.v56-person-month-heading>span{font-size:12px;color:#59707c;text-transform:none}
.v56-review-table td{padding:11px}.v56-review-table .v54-control-actions{gap:5px}.v56-review-table .button{font-size:11px;min-height:32px;padding:6px 10px!important}.v56-review-table table{min-width:840px}.v56-duplicate{display:block;padding:7px 9px;border:1px solid #d0a34f;background:#fff1c9;color:#83450c;font-size:12px;font-weight:750;border-radius:7px;margin-top:7px}.v56-note-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.v56-note-title h3{margin:0;flex:1;min-width:180px}.v56-note-title>strong{font-size:23px;color:#254e44}
#modal .modal-inner.v56-expense-modal{width:min(1280px,calc(100vw - 40px));max-width:1280px}.v56-expense-modal .v54-review-details dl{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.v56-expense-modal .v54-review-details dd{font-size:14px}.v56-expense-modal .v54-review-details dt{font-size:12px}.v56-receipt-preview{border:1px solid #b9c9ce;border-radius:12px;overflow:hidden;background:#fff;margin-top:14px}.v56-receipt-preview [data-v56-receipt-status]{padding:11px 15px;font-size:12px;color:#415b67;background:#f0f5f5;overflow-wrap:anywhere}.v56-receipt-preview [data-v56-receipt-status][role=alert]{background:#fff0ee;color:#8c263b}.v56-receipt-preview [data-v56-receipt-body]{padding:10px}.v56-receipt-preview .v54-receipt-frame{height:55vh;border:1px solid #d1dadd;border-radius:5px;display:block;min-height:280px}.v56-receipt-tools{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:12px 15px;border-top:1px solid #d1dddf;background:#f7f9f7}.v56-receipt-tools>span{font-size:12px;overflow-wrap:anywhere}.v56-receipt-tools .button{flex:none;font-size:12px}.v56-preview-help,.v56-preview-fallback{font-size:12px;color:#536c75;line-height:1.5;margin:10px 5px}.v56-decision-form{margin-top:18px;padding:18px;border:1px solid #a8bdb0;border-radius:12px;background:#edf4ee}.v56-decision-form h3{margin:0 0 10px}.v56-decision-form p{font-size:13px}.v56-decision-form textarea{background:#fff!important;color:#243e49!important;border:1px solid #99b1bb!important;border-radius:8px;padding:10px;min-height:90px}.v56-decision-form .field{display:grid;gap:8px}.v56-information-history{padding:10px;border:1px solid #c3d3d8;border-radius:8px;margin:12px 0}.v56-information-history summary{font-weight:700;cursor:pointer}.v56-information-history p{font-size:13px;white-space:pre-wrap}.v56-review-empty{color:#536b73;padding:15px}.v56-review-person[hidden]{display:none!important}
@media(max-width:1000px){.v56-review-overview{grid-template-columns:1fr}.v56-review-overview dl{gap:10px}.v56-review-overview dd{font-size:19px}.v56-expense-modal .v54-review-details dl{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.v56-review-overview{padding:15px}.v56-review-overview dl{grid-template-columns:repeat(2,minmax(0,1fr))}.v56-person-toggle{padding:12px;gap:8px}.v56-person-toggle strong{font-size:13px}.v56-person-content{padding:12px}.v56-history-controls>label{flex:1;min-width:100px}.v56-review-months{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.v56-review-months .button{font-size:11px;padding:5px!important}.v56-receipt-tools{align-items:flex-start;flex-direction:column}.v56-receipt-tools .button{width:100%}#modal .modal-inner.v56-expense-modal{width:calc(100vw - 16px)}.v56-expense-modal .v54-review-details dl{grid-template-columns:1fr}.v56-control-footer .button{flex:1}.v56-person-totals small{max-width:125px}.v56-receipt-preview .v54-receipt-frame{height:48vh;min-height:220px}}
/* The dialog, not its inner content, owns the expanded width. */
#modal:has(.v56-expense-modal){width:min(1280px,calc(100vw - 40px));max-width:1280px}
#modal .modal-inner.v56-expense-modal{width:100%;max-width:100%;box-sizing:border-box}
#v35-team .v54-control-button.v54-control-blue,#modal .v54-control-button.v54-control-blue{--action-color:#245280;--button-color:#245280}
#v35-team .v54-control-button.v54-control-teal,#modal .v54-control-button.v54-control-teal{--action-color:#176448;--button-color:#176448}
#v35-team .v54-control-button.v54-control-gold,#modal .v54-control-button.v54-control-gold{--action-color:#886020;--button-color:#886020}
#v35-team .v54-control-button.v54-control-plum,#modal .v54-control-button.v54-control-plum{--action-color:#75438b;--button-color:#75438b}
#v35-team .v54-control-button.v54-control-red,#modal .v54-control-button.v54-control-red{--action-color:#a52545;--button-color:#a52545}
#v35-team .v54-control-button.v54-control-orange,#modal .v54-control-button.v54-control-orange{--action-color:#b35b20;--button-color:#b35b20}
#v35-team .v54-control-button.v54-control-slate,#modal .v54-control-button.v54-control-slate{--action-color:#485b68;--button-color:#485b68}
#v35-team .v56-review-table .button.v54-control-button,#v35-team .v56-review-months .button.v54-control-button,#v35-team .v56-review-quick .button.v54-control-button{font-size:12px!important;min-height:34px!important}
@media(max-width:600px){#modal:has(.v56-expense-modal){width:calc(100vw - 16px)}#modal .modal-inner.v56-expense-modal{width:100%;padding:18px}}

/* V57: readable whole month names, spaced across the available width. */
.v56-review-months{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;width:100%}
#v35-team .v56-review-months .button.v54-control-button{min-height:52px!important;padding:11px 9px!important;font-size:15px!important;white-space:normal;overflow-wrap:normal;width:100%}
.v57-receipt-card .v56-receipt-tools{align-items:center;flex-wrap:wrap}.v57-receipt-card .v56-receipt-tools p{font-size:13px;line-height:1.5;flex:1 1 230px;margin:0;color:#48636d}.v57-receipt-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.v57-receipt-actions .button{min-height:42px!important;font-size:14px!important}
#modal:has(.v57-receipt-card){width:min(1000px,calc(100vw - 40px));max-width:1000px}
@media(min-width:1700px){.v56-review-months{grid-template-columns:repeat(12,minmax(0,1fr))}}
@media(max-width:1000px){.v56-review-months{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.v56-review-months{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#v35-team .v56-review-months .button.v54-control-button{font-size:14px!important;min-height:48px!important}.v57-receipt-card .v56-receipt-tools{align-items:stretch;flex-direction:column}.v57-receipt-card .v56-receipt-tools p{flex:auto}.v57-receipt-actions{display:grid;grid-template-columns:1fr;width:100%}#modal:has(.v57-receipt-card){width:calc(100vw - 16px)}}

/* Keep the short reports label and its counter together on phones. */
@media(max-width:680px){#v35-team .v35-tabs .v36-tab[data-id="reports"]{gap:4px;padding-inline:4px;overflow-wrap:normal;white-space:nowrap}#v35-team .v35-tabs .v36-tab[data-id="reports"] .v35-count{padding-inline:5px}}

/* Useful actions stay reachable even when the monthly view shows another person. */
.v59-action-list{padding:18px 20px;border:1px solid #a7c7bd;border-radius:16px;background:#f1faf5;min-width:0}
.v59-action-heading{display:flex;gap:8px 20px;align-items:baseline;justify-content:space-between;flex-wrap:wrap}
.v59-action-heading small,.v59-action-list li small{color:#536c70;font-size:13px}
.v59-action-list ul{list-style:none;margin:12px 0 0;padding:0;max-height:280px;overflow:auto}
.v59-action-list li{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;border-top:1px solid #d7e8e0}
.v59-action-list li>span{display:grid;gap:3px;min-width:0}.v59-action-list li strong{overflow-wrap:anywhere;font-size:14px}
.v59-action-list li .button{flex-shrink:0}

.v54-control-table .v60-journal-detail{white-space:pre-wrap;overflow-wrap:anywhere;min-width:17rem}
