:root{
  --am-ink:#0F2D46;--am-muted:#6D7882;--am-line:#D9DEE3;--am-bg:#F3F5F6;--am-panel:#fff;--am-navy:#0F2D46;--am-brand-gold:#D4AF6C;--am-grey:#E7EAED;
  --am-green:#8fd14f;--am-green-soft:#eef9e5;--am-blue:#234d73;--am-blue-soft:#eaf2f8;
  --am-gold:#a66a00;--am-gold-soft:#fff4d8;--am-red:#a33b35;--am-red-soft:#fbe9e7;--am-dark:#161b20;
}
*{box-sizing:border-box}.am-shell{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--am-ink);background:var(--am-bg);min-height:80vh;border:1px solid #e3e8ed;border-radius:18px;overflow:hidden;box-shadow:0 18px 46px rgba(22,38,51,.09)}
.am-topbar{background:var(--am-navy);color:#fff;padding:18px 24px;display:flex;align-items:center;justify-content:space-between}.am-brand{font-weight:900;letter-spacing:.09em}.am-version{font-size:11px;color:#91a2b0;margin-left:11px}.am-user{font-size:13px;color:#d8e0e6}.am-nav{display:flex;align-items:center;gap:2px;padding:0 16px;background:#fff;border-bottom:1px solid var(--am-line);overflow:auto}.am-nav a{padding:15px 14px;border-bottom:3px solid transparent;text-decoration:none;color:#485663;font-size:13px;font-weight:760;white-space:nowrap}.am-nav a.active{color:var(--am-navy);border-color:var(--am-brand-gold)}.am-nav-disabled{margin-left:auto;color:#a4adb5;font-size:11px;white-space:nowrap}.am-main{padding:24px}
.am-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.am-section-title.compact{margin-top:24px}.am-section-title h1,.am-section-title h2{margin:0;color:#14202b}.am-section-title h1{font-size:29px}.am-section-title h2{font-size:21px}.am-section-title p{margin:4px 0 0;color:var(--am-muted)}
.am-primary,.am-secondary{border:0;border-radius:9px;padding:10px 14px;font:inherit;font-size:13px;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.am-primary{background:var(--am-navy);color:#fff!important}.am-primary:hover{filter:brightness(1.08)}.am-primary:disabled{opacity:.45;cursor:not-allowed}.am-secondary{background:#edf2f5;color:#223746!important;border:1px solid #d8e0e5}.am-panel{background:#fff;border:1px solid var(--am-line);border-radius:14px;padding:18px;margin:16px 0;box-shadow:0 6px 18px rgba(30,46,59,.035)}.am-panel-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}.am-panel-head h2{margin:0;font-size:20px}.am-panel-head p{margin:4px 0 0;color:var(--am-muted);font-size:13px}.am-alert{background:var(--am-gold-soft);border:1px solid #ead49a;padding:12px 14px;border-radius:10px;margin:12px 0;font-size:13px}.am-alert.error{background:var(--am-red-soft);border-color:#e7b4ae;color:#6d2723}.am-empty{padding:24px;border:1px dashed #cdd7de;border-radius:12px;background:#fff;color:var(--am-muted)}
.am-yearbar{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:0 0 14px}.am-yearbar>span{font-size:12px;font-weight:800;color:var(--am-muted);margin-right:4px}.am-yearbar a{font-size:12px;font-weight:800;text-decoration:none;color:#53626f;border:1px solid #d7dfe5;background:#fff;border-radius:20px;padding:6px 10px}.am-yearbar a.active{background:var(--am-navy);color:#fff;border-color:var(--am-navy)}
.am-table-wrap{overflow:auto;background:#fff;border:1px solid var(--am-line);border-radius:12px}.am-table{width:100%;border-collapse:separate;border-spacing:0;min-width:1180px;font-size:12px}.am-table th{position:sticky;top:0;z-index:3;background:#171d22;color:#fff;padding:10px 9px;text-align:left;white-space:nowrap}.am-table td{padding:8px 9px;border-top:1px solid #e2e7eb;border-right:1px solid #edf0f2;vertical-align:middle}.am-table tr.past td{background:#f1f3f4;color:#6d767e}.am-table tr.past td .am-code{opacity:.8}.am-table tr.future:nth-child(even) td{background:#fbfcfd}.am-table td.company{min-width:175px}.am-table td.hotel{min-width:160px}.am-table td.notes{min-width:180px;max-width:260px}.am-table small{color:#71808d}.am-table.compact{min-width:620px}.am-group-head th{position:sticky;top:0;z-index:4;font-size:10px;letter-spacing:.08em;text-align:center;border-right:2px solid rgba(255,255,255,.25);padding:7px}.am-group-head .g-audit{background:#263845}.am-group-head .g-travel{background:#2e5b78}.am-group-head .g-hotel{background:#55623a}.am-group-head .g-prep{background:#5b4665}.am-group-head .g-notes{background:#5a4d42}.am-checklist thead tr:nth-child(2) th{top:27px}.am-complete{display:block;margin-top:5px;font-size:9px!important;font-weight:900;color:#65717b!important;letter-spacing:.08em}
.am-date-pair{display:flex;align-items:center;gap:5px;min-width:170px}.am-date-box{display:flex;flex-direction:column;gap:2px;padding:5px 6px;border:1px solid #dbe3e8;border-radius:7px;background:#fff;min-width:63px}.am-date-box small{font-size:8px!important;font-weight:900;letter-spacing:.08em;color:#8a969f!important}.am-date-box strong{font-size:11px;white-space:nowrap}.am-date-box.empty{opacity:.55}.am-date-arrow{color:#9aa5ad;font-weight:900}.am-date-pair em{font-size:9px;color:#64727e;white-space:nowrap;font-style:normal}.am-status{min-width:36px;height:33px;border-radius:8px;border:1px solid #ced7de;font-weight:900;cursor:pointer}.am-status.yes{background:var(--am-green);border-color:#76b738;color:#15320a}.am-status.no{background:#edf1f4;color:#78848d}.am-status small{display:block}.am-inline{display:inline;margin:0}.am-code{display:inline-block;background:#edf2f5;border:1px solid #d8e0e5;border-radius:6px;padding:4px 7px;font-weight:850;font-size:10px;white-space:nowrap}.am-ticket-link{display:flex;flex-direction:column;gap:2px;min-width:105px;border-radius:9px;padding:7px 9px;text-decoration:none}.am-ticket-link.booked{background:var(--am-green-soft);color:#2b5a13;border:1px solid #c8e4ae}.am-ticket-link.pending{background:var(--am-blue-soft);color:#1d5275;border:1px solid #c4d7e6}.am-ticket-link small{font-size:9px;color:inherit}.am-actions{display:flex;flex-direction:column;gap:5px;white-space:nowrap}.am-actions a,.am-actions button{font:inherit;font-size:10px;color:#28587a;background:none;border:0;padding:0;text-decoration:none;cursor:pointer;text-align:left;font-weight:750}
.am-form-panel.hidden{display:none}.am-audit-form>section{padding:16px 0;border-top:1px solid #edf0f2}.am-audit-form>section:first-of-type{border-top:0}.am-audit-form h3{margin:0 0 12px;font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:#53626e}.am-grid-form{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr));gap:12px}.am-grid-form label,.am-invoice-form label,.am-event-form label,.am-ticket-meta label,.am-audit-switch label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:800;color:#53616d;position:relative}.am-grid-form input,.am-grid-form select,.am-grid-form textarea,.am-invoice-form input,.am-invoice-form select,.am-event-form input,.am-event-form select,.am-ticket-meta input,.am-ticket-meta select,.am-audit-switch select,.am-place-field input,.am-flight-search input,.am-flight-search select,.am-segment-card input,.am-segment-card select,.am-copy-row input{border:1px solid #cfd8df;border-radius:8px;padding:9px;background:#fff;color:#1e2a33;font:inherit}.am-grid-form .wide{grid-column:1/-1}.am-grid-form .wide2{grid-column:span 2}.am-grid-form textarea{min-height:80px}.am-cb{flex-direction:row!important;align-items:center!important;gap:8px!important}.am-cb input{width:auto}.am-form-hint{font-size:11px;color:#71808d;align-self:end;padding:8px 0}.am-form-actions{margin-top:12px;display:flex;gap:10px}
.am-audit-switch{background:#fff;border:1px solid var(--am-line);border-radius:12px;padding:13px 14px;margin-bottom:16px;display:flex;align-items:end;gap:18px}.am-audit-switch label{min-width:320px}.am-audit-switch>div{display:flex;flex-direction:column;padding-bottom:3px}.am-audit-switch>div span{color:var(--am-muted);font-size:12px;margin-top:2px}.am-flight-layout{display:grid;grid-template-columns:1fr;gap:2px}.am-api-badge{font-size:10px;font-weight:900;letter-spacing:.08em;border-radius:20px;padding:6px 9px}.am-api-badge.ok{background:var(--am-green-soft);color:#356417}.am-api-badge.off{background:#f0f2f4;color:#6e7982}.am-flight-search{display:grid;grid-template-columns:1.35fr 1.35fr 1fr 1fr 1fr auto;gap:10px;align-items:end}.am-flight-search label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:800;color:#53616d;position:relative}.am-place-field{position:relative}.am-suggest{display:none;position:absolute;left:0;right:0;top:58px;z-index:30;background:#fff;border:1px solid #cdd7de;border-radius:9px;box-shadow:0 14px 35px rgba(15,33,47,.18);max-height:290px;overflow:auto}.am-suggest.show{display:block}.am-suggest button{display:block;width:100%;background:#fff;border:0;border-bottom:1px solid #eef1f3;text-align:left;padding:9px 10px;cursor:pointer}.am-suggest button:hover{background:#f4f7f9}.am-suggest button strong{display:inline-block;width:38px;color:#173e5e}.am-suggest small{display:block;margin:2px 0 0 38px;color:#7b8790}.am-suggest-error{padding:10px;font-size:11px;color:#8a342f}.am-loading{padding:18px;color:var(--am-muted)}.am-offer{display:grid;grid-template-columns:1fr auto;gap:16px;border-top:1px solid #e4e9ed;padding:15px 0}.am-itinerary{margin-bottom:10px}.am-it-title{font-weight:850;margin-bottom:6px}.am-search-segment{display:grid;grid-template-columns:110px 1fr 110px;gap:10px;align-items:center;padding:6px 0}.am-search-segment span{text-align:center;color:#566571}.am-search-segment small{color:#83909a}.am-offer-price{min-width:145px;display:flex;flex-direction:column;justify-content:center;align-items:flex-end;gap:9px}.am-offer-price strong{font-size:19px}
.am-segment-card{border:1px solid #dbe2e7;border-radius:12px;padding:14px;margin:12px 0;background:#fafcfd}.am-segment-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.am-segment-head strong{font-size:13px}.am-remove-segment{background:none;border:0;color:#9b413d;cursor:pointer;font-size:11px}.am-segment-grid{display:grid;grid-template-columns:1fr 36px 1fr 2.2fr;gap:10px;align-items:end}.am-route-col{display:grid;grid-template-columns:1fr 1fr;gap:8px}.am-route-col .am-place-field{grid-column:1/-1}.am-route-col label,.am-flight-detail-grid label{display:flex;flex-direction:column;gap:5px;font-size:10px;font-weight:800;color:#596773}.am-route-arrow{font-size:24px;font-weight:900;color:#81909a;align-self:center;text-align:center}.am-flight-detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.am-calc-box{background:#edf3f7;border-radius:8px;padding:8px;display:flex;flex-direction:column;justify-content:center;min-height:60px}.am-calc-box small{font-size:8px;font-weight:900;letter-spacing:.07em;color:#74828d}.am-calc-box strong{font-size:10px}.am-calc-box span{font-size:9px;color:#667682;margin-top:3px}.am-ticket-meta{display:grid;grid-template-columns:200px 120px 1fr;gap:12px;align-items:end;margin-top:14px;padding-top:14px;border-top:1px solid #e6ebee}.am-flights-table{min-width:980px}
.am-invoice-form{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 90px auto auto;gap:10px;align-items:end}.am-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.am-copy-row{display:flex;gap:8px}.am-copy-row input{flex:1}
.am-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0 20px}.am-kpis>div{background:#fff;border:1px solid var(--am-line);border-radius:12px;padding:15px}.am-kpis small{display:block;font-size:9px;letter-spacing:.08em;color:#76848e;font-weight:900;margin-bottom:7px}.am-kpis strong{font-size:22px;color:#18364f}
.am-two-months{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.am-month h2{margin:0 0 8px;font-size:18px}.am-calendar{background:#fff;border:1px solid var(--am-line);border-radius:12px;overflow:hidden}.am-weekhead,.am-days{display:grid;grid-template-columns:repeat(7,1fr)}.am-weekhead>div{background:#161d22;color:#fff;padding:8px 3px;text-align:center;font-size:10px;font-weight:850}.am-day{position:relative;min-height:112px;padding:6px;border-top:1px solid #e2e7eb;border-right:1px solid #e7ebee;background:#fff;overflow:hidden}.am-day.empty{background:#f5f7f8}.am-day.past{background:#dfe3e6;color:#6a7379}.am-day.today{box-shadow:inset 0 0 0 3px #2b638e;background:#eef7fd}.am-day.has-audit{background:#f0f8e8}.am-date{position:relative;z-index:3;font-size:11px;font-weight:900;display:flex;align-items:center;justify-content:space-between}.am-date span{font-size:7px;background:#245d87;color:#fff;border-radius:8px;padding:2px 4px;letter-spacing:.04em}.am-audit-x{position:absolute;z-index:1;right:4px;top:18px;font-size:70px;line-height:1;font-weight:200;color:rgba(92,145,45,.18);transform:rotate(-8deg)}.am-event{position:relative;z-index:2;font-size:9px;line-height:1.25;padding:4px 5px;border-radius:5px;margin:3px 0}.am-event.audit{background:var(--am-green);color:#17320d;font-weight:850}.am-event.travel{background:#dce9cf;color:#355522}.am-event.flight{background:#234d73;color:#fff}.am-event.flight.planned{background:#fff;color:#234d73;border:1px dashed #4b7696}.am-event.custom{background:#fff0c6;color:#714f08;border:1px solid #ead28d}.am-event.custom.birthday{background:#f5e8fb;color:#683c7d;border-color:#dfc6ec}.am-event.custom.holiday{background:#e5f6f2;color:#246256;border-color:#b8ddd5}.am-event.custom.personal{background:#f5ebdf;color:#725238;border-color:#e3cdb7}.am-cal-nav{display:flex;gap:6px;align-items:center}.am-cal-nav a{display:grid;place-items:center;min-width:38px;height:38px;padding:0 10px;border:1px solid var(--am-line);border-radius:8px;background:#fff;text-decoration:none;color:#23465f;font-weight:850}.am-cal-nav a:not(.today-link){font-size:22px}.am-cal-nav .today-link{font-size:11px}.am-legend{display:flex;gap:16px;flex-wrap:wrap;margin:12px 0 18px;color:#687681;font-size:11px}.am-legend i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:4px;vertical-align:-1px}.am-legend .audit{background:var(--am-green)}.am-legend .travel{background:#dce9cf}.am-legend .flight{background:#234d73}.am-legend .custom{background:#fff0c6;border:1px solid #ead28d}.am-event-form{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto auto;gap:10px;align-items:end}.am-event-list{margin-top:14px;border-top:1px solid #e7ebee}.am-event-list>div{display:grid;grid-template-columns:12px 1fr 2fr auto;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #eef1f3}.am-event-list small{color:#76838d}.am-event-list form{margin:0}.am-event-list button{border:0;background:none;color:#a34843;cursor:pointer}.am-event-dot{width:9px;height:9px;border-radius:50%;background:#d3aa45}.am-event-dot.birthday{background:#a06fb8}.am-event-dot.holiday{background:#58a798}.am-event-dot.personal{background:#b5875c}
.am-public .am-main{max-width:1500px;margin:auto}.am-public-denied{padding:30px;border:1px solid #ddd;border-radius:10px;background:#fff}.am-login{display:grid;place-items:center;padding:52px 20px}.am-login-card{width:min(430px,100%);background:#fff;border:1px solid #dfe5ea;border-radius:15px;padding:28px;box-shadow:0 18px 45px rgba(25,45,60,.11)}.am-login-card .am-brand{color:#111}.am-login-card input[type=text],.am-login-card input[type=password]{width:100%;padding:10px;border:1px solid #ccd6dd;border-radius:8px}
@media(max-width:1400px){.am-two-months{grid-template-columns:1fr 1fr}.am-segment-grid{grid-template-columns:1fr 30px 1fr}.am-flight-detail-grid{grid-column:1/-1}.am-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1000px){.am-two-months{grid-template-columns:1fr}}
@media(max-width:950px){.am-main{padding:14px}.am-grid-form{grid-template-columns:1fr 1fr}.am-flight-search{grid-template-columns:1fr 1fr 1fr}.am-invoice-form,.am-event-form{grid-template-columns:1fr 1fr}.am-settings-grid{grid-template-columns:1fr}.am-nav-disabled{display:none}.am-segment-grid{grid-template-columns:1fr}.am-route-arrow{transform:rotate(90deg)}.am-flight-detail-grid{grid-template-columns:1fr 1fr}.am-ticket-meta{grid-template-columns:1fr 1fr}.am-ticket-meta .am-form-hint{grid-column:1/-1}.am-audit-switch{align-items:stretch;flex-direction:column}.am-audit-switch label{min-width:0}.am-day{min-height:100px}}
@media(max-width:600px){.am-topbar{padding:14px}.am-main{padding:10px}.am-nav{padding:0 5px}.am-nav a{font-size:11px;padding:11px 9px}.am-section-title{flex-direction:column}.am-section-title h1{font-size:24px}.am-grid-form,.am-flight-search,.am-invoice-form,.am-event-form,.am-flight-detail-grid,.am-route-col,.am-ticket-meta{grid-template-columns:1fr}.am-grid-form .wide2{grid-column:1/-1}.am-kpis{grid-template-columns:1fr 1fr}.am-kpis strong{font-size:17px}.am-calendar{overflow:auto}.am-weekhead,.am-days{min-width:720px}.am-offer{grid-template-columns:1fr}.am-offer-price{align-items:flex-start}.am-search-segment{grid-template-columns:88px 1fr 88px}.am-copy-row{flex-direction:column}.am-event-list>div{grid-template-columns:10px 1fr auto}.am-event-list small{grid-column:2/-1}.am-date-pair{min-width:155px}}

/* v0.3 large-screen + simplified planner overrides */
.am-shell{
  width:calc(100vw - 32px);
  max-width:none;
  margin-left:calc(50% - 50vw + 16px);
  margin-right:calc(50% - 50vw + 16px);
}
.am-main{padding:20px 22px 26px}.am-public .am-main{max-width:none;margin:0}
.am-table{min-width:1420px}.am-checklist{min-width:1550px}
@media(min-width:1800px){.am-main{padding:22px 28px 30px}.am-table{font-size:12.5px}.am-table th,.am-table td{padding-left:10px;padding-right:10px}.am-two-months{gap:18px}.am-day{min-height:126px}}

/* Invoices: compact editable register */
.am-invoice-wrap{overflow:auto}.am-invoice-table{min-width:1500px}.am-invoice-table th:nth-child(1){min-width:175px}.am-invoice-table th:nth-child(2){min-width:200px}.am-invoice-table td{height:62px}.am-invoice-table input{width:100%;border:1px solid #cfd8df;border-radius:7px;padding:7px 8px;background:#fff;font:inherit;color:#1e2a33}.am-inline-input{min-width:90px}.am-num-small{max-width:80px}.am-readonly-num{display:inline-grid;place-items:center;min-width:55px;min-height:34px;padding:6px 10px;border-radius:7px;background:#f0f3f5;border:1px solid #dce3e8;font-weight:900}.am-invoice-number{display:flex;flex-direction:column;gap:2px}.am-invoice-number small{font-size:8px!important;text-transform:uppercase;letter-spacing:.05em;color:#8a6b2a!important}.am-money-input{position:relative;display:flex;align-items:center}.am-money-input input{padding-right:24px}.am-money-input span{position:absolute;right:8px;color:#687681;font-weight:900}.am-profit{display:block;white-space:nowrap;font-size:13px;color:#214f2d}.am-save-row{padding:8px 10px;min-width:58px}.am-invoice-dates{min-width:165px}

/* API settings kept inside the app */
.am-api-form{display:grid;grid-template-columns:1fr 1fr 150px;gap:12px;align-items:end}.am-api-form label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:800;color:#53616d}.am-api-form input,.am-api-form select{border:1px solid #cfd8df;border-radius:8px;padding:9px;background:#fff;color:#1e2a33;font:inherit}.am-api-form .am-form-actions{grid-column:1/-1;margin-top:0}.am-api-test-ok,.am-api-test-bad{grid-column:1/-1;border-radius:9px;padding:10px 12px;font-size:12px;font-weight:750}.am-api-test-ok{background:#eef9e5;color:#315f18;border:1px solid #c8e4ae}.am-api-test-bad{background:#fbe9e7;color:#782f2b;border:1px solid #e7b4ae}

/* Calendar v0.3: only audit label + flight icon/time */
.am-two-months{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.am-day{min-height:104px;padding:6px 7px}.am-day.has-audit{background:#f4f9ef}.am-event{font-size:10px;line-height:1.2;padding:5px 6px;border-radius:6px;margin:4px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.am-event.audit{background:#8fd14f;color:#17320d;font-weight:900}.am-event.flight,.am-event.flight.arrival{display:inline-flex;width:auto;min-width:38px;background:#234d73;color:#fff;font-size:11px;font-weight:900;padding:5px 7px}.am-event.flight.planned{display:inline-flex;width:auto;background:#fff;color:#234d73;border:1px dashed #4b7696}.am-event.travel{display:none}.am-audit-x{display:none}.am-legend{margin-top:10px}

@media(max-width:1100px){.am-shell{width:calc(100vw - 16px);margin-left:calc(50% - 50vw + 8px);margin-right:calc(50% - 50vw + 8px)}.am-two-months{grid-template-columns:1fr}.am-api-form{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.am-shell{width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);border-radius:0}.am-api-form{grid-template-columns:1fr}.am-main{padding:10px}.am-table{min-width:1180px}.am-checklist{min-width:1400px}}

/* Remove common WordPress theme width constraints on the Audit Manager page. */
body.am-app-page .site-content,body.am-app-page .content-area,body.am-app-page .site-main,body.am-app-page main,body.am-app-page .entry-content,body.am-app-page .wp-site-blocks{max-width:none!important;width:100%!important}
body.am-app-page .entry-content>.am-shell,body.am-app-page .wp-block-post-content>.am-shell{max-width:none!important}
body.am-app-page .entry-content{padding-left:0!important;padding-right:0!important}

/* v0.4 UI customization + safety */
:root{--am-row-pad-y:8px;--am-main-pad:22px}.am-main{padding:var(--am-main-pad)!important}.am-table td{padding-top:var(--am-row-pad-y)!important;padding-bottom:var(--am-row-pad-y)!important}.am-top-actions{display:flex;align-items:center;gap:8px}.am-top-button{border:1px solid #3b4650;background:#202930;color:#eaf0f4;border-radius:8px;padding:7px 10px;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.am-top-button:disabled{opacity:.35;cursor:not-allowed}.am-history-wrap{position:relative}.am-history-pop{position:absolute;right:0;top:38px;z-index:100;width:330px;background:#fff;color:#1d2932;border:1px solid #d6dee4;border-radius:11px;box-shadow:0 18px 45px rgba(18,36,49,.22);overflow:hidden}.am-history-title{padding:10px 12px;font-size:11px;font-weight:900;background:#f5f7f9;border-bottom:1px solid #e5eaee}.am-history-item{padding:9px 12px;border-bottom:1px solid #eef1f3;display:flex;flex-direction:column;gap:2px}.am-history-item strong{font-size:11px}.am-history-item small{font-size:9px;color:#75828c}.am-history-item.undone{opacity:.48}.am-history-empty{padding:14px;color:#71808d;font-size:11px}.am-ui-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 16px;background:#fff8dc;border-bottom:1px solid #ead89b;font-size:11px}.am-ui-toolbar label{display:flex;align-items:center;gap:7px;font-weight:750}.am-ui-editing .am-ui-table th{position:relative}.am-col-resizer{display:none;position:absolute;top:0;right:-4px;width:9px;height:100%;cursor:col-resize;z-index:20}.am-ui-editing .am-col-resizer{display:block}.am-ui-editing .am-col-resizer:after{content:"";position:absolute;right:4px;top:15%;height:70%;border-right:2px solid #f0c94b}.am-resizing{cursor:col-resize!important;user-select:none}.am-days-badge{display:inline-flex!important;align-items:center;justify-content:center;background:#173c5c;color:#fff!important;border-radius:7px;padding:5px 7px;font-size:11px!important;font-weight:900!important;letter-spacing:.02em}.am-date-pair{gap:6px}.am-date-box strong{font-size:12px}.am-date-box{min-width:68px}.am-table td.company{min-width:0}.am-ui-table{table-layout:auto}

/* v0.4 flights */
.am-other-input{margin-top:5px}.am-calc-box details{margin-top:6px;font-size:10px}.am-calc-box details summary{cursor:pointer;color:#47677e}.am-calc-box details input{margin-top:5px;width:120px}.am-calc-box span{display:block;margin-top:3px}.am-flights-table{min-width:1550px}

/* v0.4 calendar: occupied travel days + first takeoff / final home landing */
.am-day.has-travel:not(.has-audit){background:#eaf3f9}.am-day.has-travel.past:not(.has-audit){background:#cfd9df}.am-event.travel{display:inline-flex!important;width:auto;background:#d8e7f1;color:#315b77;font-weight:900}.am-event.travel.planned{border:1px dashed #6d91a8;background:#f5f9fc}.am-event.flight.takeoff,.am-event.flight.landing{display:inline-flex;width:auto;background:#173f60;color:#fff;font-size:11px;font-weight:900;padding:5px 7px}.am-event.flight.landing{background:#315f4a}.am-legend .flight{background:#173f60}

@media(max-width:800px){.am-top-actions{gap:5px}.am-top-button{padding:6px 8px}.am-history-pop{right:-40px;width:290px}.am-ui-toolbar{align-items:flex-start;flex-direction:column}}

/* ===== Audit Manager v0.5: enterprise checklist + two-month calendar ===== */
.am-checklist-toolbar{display:grid;grid-template-columns:135px 190px 140px minmax(240px,1fr) auto auto auto;gap:9px;align-items:end;background:#fff;border:1px solid #dfe5ea;border-radius:11px;padding:11px 12px;margin:0 0 10px}.am-checklist-toolbar label{display:flex;flex-direction:column;gap:4px;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.055em;color:#75838e}.am-checklist-toolbar select,.am-checklist-toolbar input{height:34px;border:1px solid #ced8df;border-radius:7px;background:#fff;padding:0 9px;font:inherit;font-size:11px;color:#1c2b36}.am-checklist-toolbar .am-filter-search{min-width:220px}.am-clear-filter{height:34px;display:flex;align-items:center;padding:0 7px;color:#2e6288;text-decoration:none;font-size:10px;font-weight:800}.am-result-count{height:34px;display:flex;align-items:center;justify-content:center;background:#f3f6f8;border-radius:7px;padding:0 10px;font-size:10px;font-weight:900;color:#52616d;white-space:nowrap}
.am-todo-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:8px 2px 12px;font-size:10px;color:#60707c}.am-todo-legend strong{color:#263846}.am-todo-legend span{display:inline-flex;align-items:center;gap:5px}.am-todo-legend i{width:11px;height:11px;border-radius:50%;display:inline-block}.am-todo-legend .state-0 i{background:#bfe3fa}.am-todo-legend .state-1 i{background:#1769aa}.am-todo-legend .state-2 i{background:#38b96b}.am-todo-legend small{margin-left:auto;color:#8a969f}
.am-enterprise-wrap{border-radius:9px;box-shadow:0 3px 14px rgba(25,48,66,.035)}.am-enterprise-table{min-width:1510px;font-size:10.5px}.am-enterprise-table th{background:#f2f5f7!important;color:#314350!important;border-bottom:1px solid #cfd8df!important;border-right:1px solid #e1e7eb;padding:8px 7px!important;text-transform:none;letter-spacing:0;font-size:9.5px}.am-enterprise-table td{height:44px;padding:5px 7px!important;border-right:1px solid #edf1f3}.am-enterprise-table tbody tr:nth-child(even) td{background:#fbfcfd}.am-enterprise-table tr.past td{background:#f0f2f4!important;color:#6d7780}.am-enterprise-table tr.is-remote td{background-image:linear-gradient(rgba(244,248,252,.58),rgba(244,248,252,.58))}.am-enterprise-table td.company{min-width:125px;max-width:210px}.am-enterprise-table td.notes{min-width:130px;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.am-week-cell{text-align:center;min-width:42px}.am-date-simple{white-space:nowrap;font-weight:750;color:#344a59}.am-days-big{display:inline-grid;place-items:center;min-width:31px;height:29px;padding:0 6px;border-radius:8px;background:#e8f2fb;border:1px solid #c8def0;color:#175a8c;font-size:14px;font-weight:950}.am-confirm-state{height:30px;min-width:74px;border-radius:16px;border:1px solid transparent;padding:0 9px;font:inherit;font-size:9.5px;font-weight:900;cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:4px}.am-confirm-state.state-0{background:#dff1fc;border-color:#bee1f7;color:#2c648d}.am-confirm-state.state-1{background:#1769aa;border-color:#12578e;color:#fff}.am-confirm-state.state-2{background:#dff5e7;border-color:#bce6cc;color:#247c49}.am-confirm-state span{font-size:11px}.am-mini-action{display:inline-flex;align-items:center;gap:4px;min-width:48px;justify-content:center;border-radius:7px;padding:5px 7px;text-decoration:none;font-weight:900}.am-mini-action.ok{background:#e3f5e9;color:#267347}.am-mini-action.pending{background:#e6f1f9;color:#275f86}.am-mini-action small{font-size:8px!important;color:inherit!important}.am-hotel-cell{display:flex;align-items:center;gap:5px;max-width:140px}.am-hotel-cell>span{max-width:75px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#65737d}.am-hotel-cell .am-status{min-width:29px;width:29px;height:29px}.am-mode-pill{display:inline-flex;align-items:center;border-radius:13px;padding:4px 8px;font-size:9px;font-weight:900;white-space:nowrap}.am-mode-pill.onsite{background:#e5f1fb;color:#245e8a;border:1px solid #c5ddec}.am-mode-pill.remote{background:#f1ebfb;color:#69499a;border:1px solid #dfcff2}.am-combo-badge{display:inline-flex;flex-direction:column;gap:1px;max-width:150px;background:#fff2d8;border:1px solid #ecd39c;color:#80580e;border-radius:7px;padding:4px 6px;font-size:9px;font-weight:900}.am-combo-badge small{max-width:135px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#947638!important;font-size:8px!important}.am-na{color:#9aa5ad;font-weight:700}.am-icr-code{min-width:34px;text-align:center;background:#eef3fa;border-color:#d7e2ee;color:#345d7c}
.am-mode-switch{display:flex;gap:8px;max-width:440px}.am-mode-switch label{cursor:pointer}.am-mode-switch input{position:absolute;opacity:0;pointer-events:none}.am-mode-switch span{display:inline-flex;min-width:135px;justify-content:center;border:1px solid #cdd7de;border-radius:9px;padding:10px 16px;background:#fff;color:#52626e;font-size:11px;font-weight:900}.am-mode-switch input:checked+span{background:#1769aa;border-color:#1769aa;color:#fff;box-shadow:0 3px 10px rgba(23,105,170,.18)}.am-remote-disabled{opacity:.46;filter:grayscale(.18);position:relative}.am-remote-disabled:after{content:"Disabled for remote audit";position:absolute;right:12px;top:12px;background:#f1ebfb;color:#69499a;border:1px solid #dfcff2;border-radius:14px;padding:4px 8px;font-size:9px;font-weight:900}.am-grid-form select[multiple]{min-height:142px;padding:5px}.am-grid-form label small{font-weight:500;color:#7f8d98;line-height:1.35}

/* Two-month calendar inspired by the clean overview concept. */
.am-calendar-range{display:inline-flex;margin:-5px 0 12px;padding:5px 9px;border-radius:7px;background:#f1f5f8;color:#5c6c78;font-size:10px;font-weight:850}.am-two-months{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}.am-month{min-width:0}.am-month h2{font-size:19px;margin:0 0 8px;color:#172b3a}.am-calendar{border-radius:10px;border-color:#dbe3e8}.am-weekhead>div{background:#f1f4f6!important;color:#526371!important;border-right:1px solid #e1e7eb;padding:8px 3px;font-size:9px}.am-day{min-height:118px!important;padding:6px!important;background:#fff}.am-day.past{background:#eef1f3!important;color:#76818a}.am-day.today{background:#fff8db!important;box-shadow:inset 0 0 0 2px #deb942!important}.am-day.has-audit:not(.has-unconfirmed){background:#f7fbff!important}.am-day.has-unconfirmed{background:#f1f2f3!important}.am-day.has-travel:not(.has-audit):not(.has-unconfirmed){background:#f1f8fd!important}.am-date{font-size:10px}.am-date span{background:#d6ad31;color:#fff}.am-event{white-space:normal!important;display:flex!important;flex-direction:column;align-items:flex-start;gap:1px;width:100%!important;padding:5px 6px!important;margin:3px 0!important;border-radius:5px!important;font-size:9px!important;line-height:1.15!important}.am-event strong{font-size:9px;line-height:1.2}.am-event small{font-size:7.5px!important;opacity:.82;color:inherit!important}.am-event.audit{background:#3f8fda!important;color:#fff!important;border:1px solid #2f7fc9;font-weight:850}.am-event.audit.unconfirmed{background:#d4d8dc!important;border:1px solid #bdc3c8!important;color:#49545c!important}.am-event.audit.remote{border-style:dashed!important}.am-event.flight,.am-event.flight.takeoff,.am-event.flight.landing,.am-event.travel,.am-event.travel.planned{background:#dff0fc!important;color:#235d87!important;border:1px solid #c0ddf0!important;font-weight:900!important}.am-event.flight.landing{background:#e4f4ee!important;color:#2f705a!important;border-color:#c8e4da!important}.am-event.custom{background:#fdeaf0!important;color:#8b4057!important;border:1px solid #efcad5!important}.am-legend{gap:18px}.am-legend i.unconfirmed{background:#d4d8dc}.am-legend i.today{background:#fff0a9;border:1px solid #dfbf52}.am-legend .audit{background:#3f8fda}.am-legend .travel{background:#dff0fc;border:1px solid #c0ddf0}

.am-invoice-table{min-width:1620px}.am-invoice-table th:nth-child(3){min-width:130px}

@media(max-width:1250px){.am-checklist-toolbar{grid-template-columns:repeat(3,1fr)}.am-filter-search{grid-column:span 2}.am-two-months{grid-template-columns:1fr!important}.am-day{min-height:108px!important}}
.am-combo-trip-banner{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:-4px 0 14px;padding:9px 12px;border:1px solid #ead29b;border-radius:9px;background:#fff6df;color:#76520c;font-size:10px}.am-combo-trip-banner strong{font-size:10px;text-transform:uppercase;letter-spacing:.05em}.am-combo-trip-banner span{font-weight:900;color:#5d430f}.am-combo-trip-banner small{margin-left:auto;color:#987b43}


/* ===== Audit Manager v0.6: AJAX status dropdowns + reordered checklist ===== */
.am-enterprise-table{min-width:1740px}
.am-enterprise-table tr.past td,.am-table tr.past td{background:#edf8ef!important;color:#496253!important;background-image:none!important}
.am-enterprise-table tr.past td .am-code,.am-table tr.past td .am-code{opacity:1}
.am-week-cell{min-width:48px;text-align:center}.am-week-cell strong{font-size:12px;color:#263c4b}
.am-hotel-name{min-width:120px;max-width:180px}.am-hotel-name>span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.am-status-cell{min-width:126px;text-align:center}
.am-status-select{width:100%;min-width:122px;height:31px;border-radius:7px;border:1px solid #d4dce2;padding:0 25px 0 8px;font:inherit;font-size:9px;font-weight:850;cursor:pointer;outline:none;transition:.15s;background-color:#f4f6f7;color:#6f7a82}
.am-status-select.state-0{background:#f4f5f6;border-color:#dfe3e6;color:#7c858b}
.am-status-select.state-1{background:#dff1fc;border-color:#b9dcf4;color:#2a6289}
.am-status-select.state-2{background:#1769aa;border-color:#12578e;color:#fff}
.am-status-select.state-3{background:#dff5e7;border-color:#b9e4c8;color:#237a48}
.am-status-select:disabled{opacity:.65;cursor:progress}
.am-todo-legend .state-0 i{background:#dfe3e6}.am-todo-legend .state-1 i{background:#bfe3fa}.am-todo-legend .state-2 i{background:#1769aa}.am-todo-legend .state-3 i{background:#38b96b}
.am-save-toast{position:fixed;right:24px;bottom:24px;z-index:999999;background:#183b2b;color:#fff;border-radius:9px;padding:9px 14px;font-size:11px;font-weight:850;box-shadow:0 8px 24px rgba(0,0,0,.18);opacity:0;transform:translateY(8px);pointer-events:none;transition:.18s}.am-save-toast.show{opacity:1;transform:translateY(0)}

/* v0.6 invoice combinations: each audit stays a row, only shared invoice fields use rowspan. */
.am-invoice-table{min-width:1540px}.am-invoice-row.is-combo td{border-top-color:#e3d2a5}.am-shared-invoice-cell{vertical-align:middle!important;background:#fff9e9!important;min-width:150px;border-left:2px solid #ead29b!important;border-right:2px solid #ead29b!important}.am-shared-invoice-cell input{background:#fff!important}.am-shared-invoice-cell>small{display:block;margin-top:5px;color:#9a7a35!important;font-size:8px!important;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.am-autosave-state{display:block;margin-top:3px;font-size:8px!important;color:#7c8b95!important}.am-autosave-state.saving{color:#2f6d9b!important}.am-autosave-state.error{color:#b23a3a!important}

/* ===== Audit Manager v0.7: compact modal edit + inline checklist controls ===== */
.am-inline-select{height:31px;min-width:70px;border:1px solid #d4dce2;border-radius:7px;background:#fff;padding:0 24px 0 8px;font:inherit;font-size:9px;font-weight:850;color:#334957;cursor:pointer}.am-mode-inline{min-width:88px}.am-inline-select:disabled{opacity:.6;cursor:progress}
.am-link-button{border:0;background:transparent;color:#1769aa;padding:0;font:inherit;font-size:10px;font-weight:900;cursor:pointer}.am-link-button:hover{text-decoration:underline}
.am-combine-cell{min-width:110px}.am-combine-dropdown{position:relative}.am-combine-dropdown>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-width:78px;min-height:29px;padding:0 8px;border:1px solid #d7dee3;border-radius:7px;background:#fff8e7;color:#7a5714;font-size:9px;font-weight:900}.am-combine-dropdown>summary::-webkit-details-marker{display:none}.am-combine-dropdown[open]>summary{border-color:#d2b66e;background:#fff1ca}.am-combine-pop{position:absolute;z-index:120;right:0;top:34px;width:310px;max-height:390px;display:flex;flex-direction:column;background:#fff;border:1px solid #d5dde3;border-radius:10px;box-shadow:0 18px 44px rgba(28,45,58,.22);overflow:hidden}.am-combine-title{padding:10px 12px;background:#f5f7f9;border-bottom:1px solid #e5eaee;font-size:10px;font-weight:900;color:#465965}.am-combine-options{overflow:auto;padding:6px}.am-combine-options label{display:flex;align-items:flex-start;gap:8px;padding:7px 6px;border-radius:7px;cursor:pointer}.am-combine-options label:hover{background:#f4f8fb}.am-combine-options input{margin-top:2px}.am-combine-options span{display:flex;flex-direction:column;gap:1px}.am-combine-options strong{font-size:10px;color:#243b4a}.am-combine-options small{font-size:8px;color:#74838e}.am-combine-actions{display:flex;justify-content:flex-end;gap:7px;padding:8px;border-top:1px solid #e7ecef;background:#fafbfc}
body.am-modal-open{overflow:hidden}.am-modal[hidden]{display:none}.am-modal{position:fixed;inset:0;z-index:999990;display:grid;place-items:center;padding:24px}.am-modal-backdrop{position:absolute;inset:0;background:rgba(17,30,39,.52);backdrop-filter:blur(2px)}.am-modal-card{position:relative;z-index:2;width:min(860px,calc(100vw - 48px));max-height:calc(100vh - 48px);overflow:auto;background:#fff;border-radius:14px;box-shadow:0 30px 80px rgba(0,0,0,.30);border:1px solid #d6dee4}.am-modal-head{position:sticky;top:0;z-index:4;display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:16px 18px;background:#fff;border-bottom:1px solid #e6ebee}.am-modal-head h2{margin:0 0 3px;font-size:20px;color:#1d3140}.am-modal-head p{margin:0;color:#7a8993;font-size:10px}.am-modal-close{border:0;background:#eef2f5;color:#50616d;border-radius:50%;width:31px;height:31px;display:grid;place-items:center;font-size:20px;line-height:1;cursor:pointer}.am-compact-edit{padding:16px 18px 18px}.am-compact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.am-compact-grid label{display:flex;flex-direction:column;gap:5px;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:#687984}.am-compact-grid input,.am-compact-grid select,.am-compact-grid textarea{border:1px solid #ced8df;border-radius:8px;background:#fff;padding:9px;color:#20333f;font:inherit;font-size:11px;text-transform:none;letter-spacing:0}.am-compact-grid label.wide{grid-column:1/-1}.am-add-only{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.am-add-only[hidden]{display:none!important}.am-modal-actions{display:flex;align-items:center;justify-content:flex-end;margin-top:14px;padding-top:12px;border-top:1px solid #edf1f3}.am-inline-save-state{margin-right:auto;font-size:9px;color:#6e7f8a}
@media(max-width:760px){.am-modal{padding:8px}.am-modal-card{width:calc(100vw - 16px);max-height:calc(100vh - 16px)}.am-compact-grid{grid-template-columns:1fr 1fr}.am-compact-grid .wide,.am-add-only{grid-column:1/-1}.am-combine-pop{right:auto;left:0;width:min(310px,80vw)}}

/* ===== Audit Manager v0.8: integrated flight planner ===== */
.am-saved-flights-block{margin:0 0 18px;padding:14px 16px;background:#f8fbfd;border:1px solid #d8e3ea;border-radius:12px}.am-saved-flights-block .am-section-title{margin:0 0 10px}.am-saved-flights-block .am-table-wrap{margin-bottom:0}.am-flights-table{min-width:1280px}.am-flights-table .am-miles-select{min-width:74px;height:30px;border:1px solid #d2dce3;border-radius:7px;background:#fff;padding:0 24px 0 8px;font-size:9px;font-weight:850;color:#334957}.am-add-flights-panel{margin-top:12px}.am-flight-mode-tabs{display:flex;gap:6px;margin:0 0 14px;padding:4px;background:#eef3f6;border-radius:9px;width:max-content}.am-flight-mode-tab{border:0;border-radius:7px;background:transparent;color:#60717d;font-size:10px;font-weight:900;padding:8px 14px;cursor:pointer}.am-flight-mode-tab.active{background:#fff;color:#1769aa;box-shadow:0 1px 5px rgba(33,55,70,.14)}.am-flight-mode-tab:disabled{opacity:.45;cursor:not-allowed}.am-flight-mode-panel[hidden]{display:none!important}.am-integrated-search{grid-template-columns:minmax(180px,1.3fr) minmax(180px,1.3fr) 145px 145px 180px 160px auto!important;align-items:end}.am-integrated-search label small{font-size:8px;color:#87949c;text-transform:none}.am-integrated-search button{min-height:36px}.am-search-segment{grid-template-columns:minmax(130px,.8fr) minmax(220px,1.4fr) minmax(130px,.8fr)}.am-offer{border:1px solid #d8e1e7;border-radius:10px;background:#fff;overflow:hidden;margin-top:10px}.am-offer-price{background:#f7fafc;border-top:1px solid #e4eaee}.am-segment-grid .am-flight-detail-grid{grid-template-columns:repeat(5,minmax(120px,1fr)) minmax(170px,1.25fr)}
@media(max-width:1500px){.am-integrated-search{grid-template-columns:repeat(4,minmax(140px,1fr))!important}.am-integrated-search button{grid-column:auto}.am-segment-grid .am-flight-detail-grid{grid-template-columns:repeat(3,minmax(130px,1fr))}}
@media(max-width:900px){.am-integrated-search{grid-template-columns:1fr 1fr!important}.am-flight-mode-tabs{width:100%}.am-flight-mode-tab{flex:1}.am-segment-grid .am-flight-detail-grid{grid-template-columns:1fr 1fr}}

/* =========================================================
   Audit Manager v0.9 — compact enterprise UI overrides
   ========================================================= */

/* Global shell / discreet UI editor */
.am-app-shell,.am-shell{max-width:none!important;width:100%!important;}
.am-top-actions{display:flex;align-items:center;gap:8px;}
.am-ui-mini{border:1px solid #d8dee8;background:#fff;color:#4d5b70;border-radius:8px;padding:6px 9px;font-size:12px;line-height:1;cursor:pointer;box-shadow:none!important;}
.am-ui-mini:hover{background:#f5f7fa;color:#1f3e68;}
.am-ui-popover{position:absolute;right:20px;top:58px;z-index:1200;width:285px;background:#fff;border:1px solid #dce3ec;border-radius:12px;box-shadow:0 14px 38px rgba(28,43,64,.16);padding:14px;display:none;}
.am-ui-popover.is-open{display:block;}
.am-ui-popover .am-ui-title{font-size:13px;font-weight:700;color:#26364c;margin-bottom:10px;}
.am-ui-popover .am-ui-control{display:grid;grid-template-columns:85px 1fr 48px;gap:8px;align-items:center;margin:8px 0;font-size:12px;color:#5d6b7d;}
.am-ui-popover input[type=range]{width:100%;}
.am-ui-popover .am-ui-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:12px;padding-top:10px;border-top:1px solid #edf1f5;}
.am-ui-popover button{font-size:11px;padding:6px 9px;}

/* Checklist — dense enterprise list */
.am-checklist-wrap{overflow:auto;border:1px solid #e0e6ee;border-radius:12px;background:#fff;}
.am-checklist-table{width:100%;min-width:1460px;border-collapse:separate!important;border-spacing:0!important;font-size:12px;table-layout:auto;}
.am-checklist-table thead th{position:sticky;top:0;z-index:4;background:#f7f9fc!important;color:#4e5d70!important;text-transform:uppercase;letter-spacing:.035em;font-size:10px;font-weight:700;border-bottom:1px solid #dfe5ed!important;padding:8px 7px!important;white-space:nowrap;}
.am-checklist-table tbody tr{cursor:pointer;transition:background .12s ease,box-shadow .12s ease;}
.am-checklist-table tbody tr:hover{background:#f7fbff!important;box-shadow:inset 3px 0 0 #79a8df;}
.am-checklist-table td{padding:8px 7px!important;border-bottom:1px solid #edf1f5!important;vertical-align:middle!important;white-space:nowrap;}
.am-checklist-table tr.past td,.am-checklist-table tr.am-past td{background:#eff9f0!important;}
.am-checklist-table tr.past:hover td,.am-checklist-table tr.am-past:hover td{background:#e6f5e8!important;}
.am-checklist-table tr.is-combined td:first-child{box-shadow:inset 3px 0 0 #6e94c5;}
.am-checklist-table tr.is-combined td{background-image:linear-gradient(rgba(72,117,170,.018),rgba(72,117,170,.018));}

.am-week-cell{font-weight:700;color:#47566a;text-align:center;min-width:54px;}
.am-date-simple{display:inline-block;color:#1767b4;font-size:12px;font-weight:700;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;line-height:1.25;min-width:72px;text-align:center;}
.am-days-count,.am-day-count{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:30px;padding:0 8px;border-radius:8px;background:#eef5ff;color:#1f62a7;font-size:14px;font-weight:800;}
.am-info-code{font-size:11px;font-weight:800;color:#31506f;letter-spacing:.04em;}
.am-mode-pill{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;font-size:10px;font-weight:700;background:#f0f3f6;color:#5e6977;}
.am-mode-pill.remote{background:#eef1ff;color:#5c66a1;}
.am-company-line{display:flex;align-items:center;gap:7px;min-width:0;}
.am-company-name{font-weight:700;color:#1f2f42;overflow:hidden;text-overflow:ellipsis;max-width:170px;}
.am-combo-badge{display:inline-flex;align-items:center;gap:3px;padding:2px 6px;border-radius:999px;background:#edf4fd;color:#3f6eaa;font-size:9px;font-weight:700;white-space:nowrap;}
.am-company-tools{display:flex;align-items:center;gap:4px;margin-top:3px;}
.am-company-tools details{display:inline-block;position:relative;}
.am-company-tools summary{list-style:none;cursor:pointer;color:#7a8796;font-size:10px;padding:1px 3px;border-radius:4px;}
.am-company-tools summary::-webkit-details-marker{display:none;}
.am-company-tools details[open] summary{background:#f0f4f8;color:#315d91;}
.am-combine-menu{position:absolute;left:0;top:22px;z-index:20;min-width:260px;background:#fff;border:1px solid #dce3ec;border-radius:10px;box-shadow:0 12px 26px rgba(33,47,66,.15);padding:10px;white-space:normal;}
.am-tiny-link{border:0;background:transparent!important;color:#6e7c8c!important;font-size:9px!important;padding:2px 4px!important;cursor:pointer;}
.am-tiny-link:hover{color:#1c65a8!important;text-decoration:underline;}

/* Status controls compact */
.am-status-select{min-width:72px!important;max-width:92px!important;height:30px!important;padding:3px 22px 3px 7px!important;border-radius:7px!important;font-size:11px!important;font-weight:700!important;}
.am-status-select[data-status="0"]{background:#fff!important;color:#7e8895!important;}
.am-status-select[data-status="1"]{background:#dcecff!important;color:#2668a7!important;}
.am-status-select[data-status="2"]{background:#1f5d99!important;color:#fff!important;}
.am-status-select[data-status="3"]{background:#dff4e4!important;color:#2e7c45!important;}

/* Audit modal */
.am-modal-overlay{backdrop-filter:blur(2px);}
.am-modal-card{max-width:720px!important;}
.am-audit-modal .am-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;}
.am-audit-modal .am-field-wide{grid-column:1/-1;}
.am-field-suggest{position:relative;}
.am-suggestion-box{position:absolute;z-index:30;left:0;right:0;top:100%;margin-top:2px;max-height:210px;overflow:auto;background:#fff;border:1px solid #d9e1ea;border-radius:8px;box-shadow:0 10px 24px rgba(27,42,62,.15);display:none;}
.am-suggestion-box.is-open{display:block;}
.am-suggestion-item{padding:8px 10px;font-size:12px;cursor:pointer;border-bottom:1px solid #f0f3f6;}
.am-suggestion-item:last-child{border-bottom:0;}
.am-suggestion-item:hover{background:#f2f7fd;}
.am-custom-type-field[hidden]{display:none!important;}

/* Flights — clearer timeline table */
.am-flight-template{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f7fbff;border:1px solid #dceafb;border-radius:10px;padding:10px 12px;margin:10px 0 14px;}
.am-flight-template strong{color:#244d78;}
.am-flight-table{font-size:12px;}
.am-flight-table th{font-size:10px;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap;}
.am-flight-table td{vertical-align:middle!important;}
.am-flight-clock{font-size:15px;font-weight:800;color:#1e4f80;white-space:nowrap;}
.am-flight-date{display:block;font-size:10px;color:#7b8795;margin-bottom:2px;}
.am-flight-route{font-weight:800;color:#2d435c;font-size:12px;}
.am-transfer-row td{padding:0!important;border-bottom:0!important;background:transparent!important;text-align:center;}
.am-transfer-row span,.am-transfer-row td{color:#6f7e8f;font-size:10px;}
.am-transfer-row td:before{content:"";display:inline-block;width:30px;border-top:1px solid #cbd6e2;margin:0 8px 3px 0;}
.am-transfer-row td:after{content:"";display:inline-block;width:30px;border-top:1px solid #cbd6e2;margin:0 0 3px 8px;}
.am-edit-flight-btn{padding:5px 8px!important;font-size:10px!important;}

/* Invoice — compact numeric layout */
.am-invoice-table{table-layout:auto;}
.am-invoice-table th,.am-invoice-table td{padding:8px 6px!important;}
.am-invoice-table .col-invoice-no,.am-invoice-table td.col-invoice-no{width:72px!important;max-width:72px!important;}
.am-invoice-table .col-audit-days,.am-invoice-table .col-travel-days,.am-invoice-table .col-report-days,
.am-invoice-table td.col-audit-days,.am-invoice-table td.col-travel-days,.am-invoice-table td.col-report-days{width:68px!important;max-width:68px!important;text-align:center;}
.am-invoice-table .col-rate,.am-invoice-table td.col-rate{width:88px!important;max-width:88px!important;}
.am-invoice-table .col-amount,.am-invoice-table td.col-amount{width:105px!important;max-width:105px!important;}
.am-invoice-table .col-profit,.am-invoice-table td.col-profit{width:90px!important;max-width:90px!important;text-align:right;}
.am-invoice-table input[type=number],.am-invoice-table input[type=text]{width:100%!important;min-width:0!important;padding:6px!important;text-align:center;}
.am-approval-wrap{display:flex;align-items:center;justify-content:center;gap:4px;}
.am-approval-dot{width:24px;height:24px;border-radius:50%;border:1px solid #c7d1dc;background:#fff;color:#8a96a4;font-size:11px;font-weight:800;cursor:pointer;padding:0!important;}
.am-approval-dot.approved{background:#e1f5e5;color:#2c7b43;border-color:#a7d8b2;}
.am-approval-dot.estimate{background:#fff9e8;color:#9a7627;border-color:#ead79e;}
.am-profit-value{font-weight:800;color:#2e7043;white-space:nowrap;}

/* Dashboard */
.am-dashboard{display:grid;gap:16px;}
.am-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;}
.am-kpi-card{background:#fff;border:1px solid #e0e6ee;border-radius:14px;padding:15px 16px;min-height:106px;box-shadow:0 2px 8px rgba(29,46,68,.035);}
.am-kpi-card .label{font-size:10px;text-transform:uppercase;letter-spacing:.055em;color:#7b8795;font-weight:700;}
.am-kpi-card .value{font-size:25px;line-height:1.15;color:#1d3550;font-weight:800;margin-top:8px;}
.am-kpi-card .sub{font-size:11px;color:#778392;margin-top:6px;}
.am-kpi-card.next .value{font-size:17px;}
.am-dashboard-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:16px;}
.am-panel-card{background:#fff;border:1px solid #e0e6ee;border-radius:14px;padding:15px 16px;}
.am-panel-card h3{margin:0 0 12px;font-size:14px;color:#263a51;}
.am-upcoming-list{display:grid;gap:8px;}
.am-upcoming-item{display:grid;grid-template-columns:74px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #edf1f5;}
.am-upcoming-item:last-child{border-bottom:0;}
.am-upcoming-date{font-weight:800;color:#2b639d;font-size:11px;}
.am-upcoming-name{font-weight:700;color:#26394f;}
.am-upcoming-meta{font-size:10px;color:#7c8997;margin-top:2px;}
.am-donut-wrap{display:flex;align-items:center;gap:18px;justify-content:center;min-height:190px;}
.am-donut{--pct:0;width:150px;height:150px;border-radius:50%;background:conic-gradient(#3e8d59 calc(var(--pct)*1%),#e8edf2 0);position:relative;display:grid;place-items:center;}
.am-donut:after{content:"";width:104px;height:104px;background:#fff;border-radius:50%;position:absolute;}
.am-donut .donut-text{position:relative;z-index:2;text-align:center;color:#2a3d53;font-weight:800;font-size:22px;}
.am-donut .donut-text small{display:block;font-size:9px;font-weight:600;color:#7a8795;text-transform:uppercase;letter-spacing:.04em;}
.am-chart-bars{display:flex;align-items:flex-end;gap:10px;min-height:190px;padding:18px 4px 2px;}
.am-chart-bar{flex:1;min-width:32px;text-align:center;}
.am-chart-bar .bar{height:calc(var(--h,0)*1%);min-height:2px;background:#6f9fd2;border-radius:6px 6px 2px 2px;position:relative;}
.am-chart-bar.profit .bar{background:#70a87b;}
.am-chart-bar .val{font-size:9px;color:#607084;margin-bottom:4px;font-weight:700;}
.am-chart-bar .year{font-size:9px;color:#7a8795;margin-top:5px;}

/* Calendar — availability view */
.am-calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px;}
.am-calendar-view-switch{display:inline-flex;padding:3px;border:1px solid #dce3ec;border-radius:9px;background:#f7f9fb;}
.am-calendar-view-switch a,.am-calendar-view-switch button{border:0!important;background:transparent!important;color:#697789!important;padding:6px 10px!important;border-radius:6px!important;font-size:11px!important;font-weight:700!important;text-decoration:none!important;}
.am-calendar-view-switch .active{background:#fff!important;color:#23629f!important;box-shadow:0 1px 4px rgba(31,53,78,.10);}
.am-months-grid{display:grid;gap:14px;align-items:start;}
.am-months-grid.months-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.am-months-grid.months-4{grid-template-columns:repeat(2,minmax(0,1fr));}
.am-months-grid.months-6{grid-template-columns:repeat(3,minmax(0,1fr));}
.am-month-card{border:1px solid #dfe5ed;border-radius:12px;background:#fff;overflow:hidden;}
.am-month-title{text-align:center;font-weight:800;color:#2b4057;padding:9px 10px;background:#f8fafc;border-bottom:1px solid #e3e8ef;font-size:13px;}
.am-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));}
.am-cal-head{text-align:center;padding:6px 2px;background:#fbfcfd;color:#7a8794;font-size:9px;font-weight:800;text-transform:uppercase;border-bottom:1px solid #edf1f5;}
.am-day{position:relative;min-height:112px;border-right:1px solid #edf1f5;border-bottom:1px solid #edf1f5;background:#fff;overflow:hidden;display:flex;align-items:stretch;justify-content:center;text-align:center;}
.am-day:nth-child(7n){border-right:0;}
.am-day-number{position:absolute;left:6px;top:5px;z-index:3;font-size:9px;font-weight:800;color:#657587;}
.am-day .am-events{width:100%;height:100%;display:flex;align-items:center;justify-content:center;position:relative;padding:20px 4px 5px;z-index:2;}
.am-day .am-event{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;width:100%;padding:2px!important;margin:0!important;text-align:center!important;color:inherit;font-size:10px;font-weight:700;line-height:1.25;display:flex;align-items:center;justify-content:center;flex-direction:column;}
.am-day.has-audit-confirmed{background:#2f6fae!important;color:#fff!important;}
.am-day.has-audit-unconfirmed{background:#d6dbe1!important;color:#4f5d6c!important;}
.am-day.has-travel:not(.has-audit-confirmed):not(.has-audit-unconfirmed){background:#dceeff!important;color:#285f95!important;}
.am-day.has-protected:not(.has-audit-confirmed):not(.has-audit-unconfirmed):not(.has-travel){background:#f7e8ec!important;color:#795360!important;}
.am-day.past,.am-day.is-past{background:#d8dadd!important;color:#5d6269!important;}
.am-day.past .am-event,.am-day.is-past .am-event{color:#4f555c!important;}
.am-day.past .am-day-number,.am-day.is-past .am-day-number{color:#6a6e73!important;}
.am-day.has-audit-confirmed:not(.past):not(.is-past) .am-day-number{color:rgba(255,255,255,.86)!important;}
.am-day.today{outline:3px solid #f0c45b;outline-offset:-3px;z-index:2;}
.am-event.audit{font-size:10px!important;}
.am-event.audit.bridge{font-size:0!important;}
.am-event.flight{position:absolute!important;left:0;right:0;top:calc(var(--time-pos,50)*1%);transform:translateY(-50%);font-size:11px!important;}
.am-event.flight .flight-icon{font-size:24px;line-height:1;margin-bottom:2px;}
.am-event.flight .flight-time{font-size:12px;font-weight:900;line-height:1.05;}
.am-event.flight .flight-country{font-size:8px;font-weight:700;opacity:.82;margin-top:2px;}
.am-event.flight.middle .flight-icon{font-size:28px;}
.am-calendar-legend{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:10px;color:#697789;}
.am-calendar-legend span{display:inline-flex;align-items:center;gap:5px;}
.am-legend-swatch{width:12px;height:12px;border-radius:3px;display:inline-block;}
.am-legend-audit{background:#2f6fae;}.am-legend-travel{background:#dceeff;border:1px solid #bed8f0}.am-legend-unconfirmed{background:#d6dbe1}.am-legend-protected{background:#f7e8ec}.am-legend-past{background:#d8dadd}

/* Protected dates modal */
.am-protected-modal .am-protected-list{max-height:250px;overflow:auto;border-top:1px solid #edf1f5;margin-top:12px;padding-top:8px;}
.am-protected-item{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid #f0f3f6;font-size:11px;}

/* Settings backup */
.am-backup-card{border:1px solid #dfe6ee;border-radius:12px;background:#fff;padding:14px;margin-top:16px;}
.am-backup-card h3{margin:0 0 6px;font-size:14px;color:#2d4157;}
.am-backup-card p{font-size:11px;color:#6f7d8c;max-width:760px;}
.am-backup-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px;}

@media (max-width:1500px){
  .am-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  .am-months-grid.months-6{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:1050px){
  .am-dashboard-grid{grid-template-columns:1fr;}
  .am-months-grid.months-2,.am-months-grid.months-4,.am-months-grid.months-6{grid-template-columns:1fr;}
  .am-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .am-audit-modal .am-form-grid{grid-template-columns:1fr;}
  .am-audit-modal .am-field-wide{grid-column:auto;}
}
@media (max-width:640px){
  .am-kpi-grid{grid-template-columns:1fr;}
  .am-ui-popover{position:fixed;left:10px;right:10px;top:68px;width:auto;}
  .am-day{min-height:95px;}
}

/* v0.9 class alignment — actual markup */
.am-field-suggest{position:absolute;z-index:40;left:0;right:0;top:calc(100% + 3px);max-height:210px;overflow:auto;background:#fff;border:1px solid #d9e1ea;border-radius:8px;box-shadow:0 10px 24px rgba(27,42,62,.15);display:none;}
.am-field-suggest.show{display:block;}
.am-field-suggest button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;text-align:left;border:0!important;border-bottom:1px solid #eef2f6!important;background:#fff!important;padding:8px 10px!important;color:#31455b!important;cursor:pointer;}
.am-field-suggest button:hover{background:#f2f7fd!important;}
.am-field-suggest button small{color:#8090a0;font-size:10px;}
.am-smart-field{position:relative;}

/* Dashboard exact classes */
.am-dashboard-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:14px;}
.am-dashboard-head h1{margin:0;color:#22384f;font-size:24px;}
.am-dashboard-head p,.am-dashboard-date{margin:4px 0 0;color:#788697;font-size:11px;}
.am-dashboard-kpis{display:grid;grid-template-columns:1.25fr repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px;}
.am-dashboard-kpis .am-kpi-card{display:flex;flex-direction:column;justify-content:center;background:#fff;border:1px solid #e0e6ee;border-radius:14px;padding:15px 16px;min-height:102px;}
.am-dashboard-kpis .am-kpi-card small{font-size:9px;letter-spacing:.06em;font-weight:800;color:#8190a0;}
.am-dashboard-kpis .am-kpi-card strong{display:block;font-size:24px;line-height:1.12;color:#213b57;margin:7px 0 3px;}
.am-dashboard-kpis .am-kpi-card.primary strong{font-size:18px;}
.am-dashboard-kpis .am-kpi-card span{font-size:10px;color:#788697;}
.am-dashboard-kpis .am-kpi-card.todo{border-top:3px solid #32699e;}
.am-dashboard-kpis .am-kpi-card.money{border-top:3px solid #6aa278;}
.am-dashboard-card{background:#fff;border:1px solid #e0e6ee;border-radius:14px;padding:15px 16px;min-width:0;}
.am-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;}
.am-card-head h2{font-size:14px;color:#2a4057;margin:0;}
.am-card-head a{font-size:10px;color:#2e6da8;text-decoration:none;}
.am-upcoming-list>div{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:8px 10px;align-items:center;padding:9px 0;border-bottom:1px solid #edf1f5;}
.am-upcoming-list>div:last-child{border-bottom:0;}
.am-up-date{font-size:10px;font-weight:800;color:#2d6ba6;}
.am-upcoming-list strong{font-size:12px;color:#263d55;}
.am-upcoming-list small{grid-column:2/3;font-size:9px;color:#82909f;margin-top:-7px;}
.am-completion-card .am-donut-wrap{display:flex;align-items:center;justify-content:center;gap:24px;min-height:180px;}
.am-completion-card .am-donut{--pct:0;width:145px;height:145px;border-radius:50%;background:conic-gradient(#5a9b69 calc(var(--pct)*1%),#e8edf2 0);position:relative;display:grid;place-items:center;}
.am-completion-card .am-donut:after{content:"";position:absolute;width:100px;height:100px;background:#fff;border-radius:50%;}
.am-completion-card .am-donut>div{position:relative;z-index:2;text-align:center;}
.am-completion-card .am-donut strong{display:block;font-size:23px;color:#2b4057;}
.am-completion-card .am-donut span{font-size:9px;color:#7f8c9a;}
.am-donut-legend{display:grid;gap:8px;font-size:10px;color:#697889;}
.am-donut-legend span{display:flex;align-items:center;gap:6px;}.am-donut-legend i{width:9px;height:9px;border-radius:50%;display:block}.am-donut-legend i.done{background:#5a9b69}.am-donut-legend i.left{background:#e8edf2;border:1px solid #cfd7df}
.am-bar-chart{display:grid;gap:7px;margin-top:8px;}
.am-bar-row{display:grid;grid-template-columns:44px minmax(0,1fr) 62px;gap:8px;align-items:center;font-size:10px;color:#718091;}
.am-bar-row>div{height:12px;background:#f0f3f6;border-radius:999px;overflow:hidden;}
.am-bar-row i{display:block;height:100%;background:#6798cb;border-radius:999px;}
.am-bar-chart.money .am-bar-row i{background:#70a47b;}
.am-bar-row strong{text-align:right;color:#44566a;font-size:10px;}

/* Calendar exact classes */
.am-cal-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.am-view-switch{display:inline-flex;gap:2px;padding:3px;background:#f5f7fa;border:1px solid #dce3eb;border-radius:9px;}
.am-view-switch a{padding:5px 9px;border-radius:6px;text-decoration:none;color:#6a7888;font-size:10px;font-weight:800;}
.am-view-switch a.active{background:#fff;color:#24649f;box-shadow:0 1px 4px rgba(27,44,64,.1);}
.am-cal-nav{display:inline-flex;align-items:center;border:1px solid #dce3eb;border-radius:9px;overflow:hidden;}
.am-cal-nav a{padding:6px 9px;text-decoration:none;color:#5f7082;background:#fff;border-right:1px solid #e6ebf1;font-size:11px;}
.am-cal-nav a:last-child{border-right:0}.am-cal-nav a.today-link{font-weight:800;font-size:9px;}
.am-month{border:1px solid #dfe5ed;border-radius:12px;background:#fff;overflow:hidden;min-width:0;}
.am-month>h2{text-align:center;font-size:13px;color:#2b4057;margin:0;padding:9px 10px;background:#f8fafc;border-bottom:1px solid #e3e8ef;}
.am-calendar{width:100%;}
.am-weekhead,.am-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));}
.am-weekhead>div{text-align:center;padding:6px 2px;background:#fbfcfd;color:#7a8794;font-size:9px;font-weight:800;text-transform:uppercase;border-bottom:1px solid #edf1f5;border-right:1px solid #edf1f5;}
.am-weekhead>div:nth-child(7){border-right:0;}
.am-days .am-day{position:relative;min-height:112px;border-right:1px solid #edf1f5;border-bottom:1px solid #edf1f5;background:#fff;overflow:hidden;display:flex;align-items:center;justify-content:center;text-align:center;color:#34485e;}
.am-days .am-day:nth-child(7n){border-right:0;}
.am-days .am-day.empty{background:#fafbfc!important;}
.am-days .am-date{position:absolute;left:6px;top:5px;z-index:4;font-size:9px;font-weight:800;color:#647487;line-height:1;}
.am-days .am-date span{display:block;margin-top:3px;font-size:6px;letter-spacing:.03em;}
.am-days .am-day.has-audit{background:#2f6fae!important;color:#fff!important;}
.am-days .am-day.has-unconfirmed{background:#d6dbe1!important;color:#4f5d6c!important;}
.am-days .am-day.has-travel{background:#dceeff!important;color:#285f95!important;}
.am-days .am-day.has-custom{background:#f7e8ec!important;color:#795360!important;}
.am-days .am-day.past{background:#d8dadd!important;color:#51575e!important;}
.am-days .am-day.past .am-date{color:#6c7177!important;}
.am-days .am-day.has-audit:not(.past) .am-date{color:rgba(255,255,255,.86)!important;}
.am-days .am-day.today{outline:3px solid #f0c45b;outline-offset:-3px;z-index:2;}
.am-days .am-event{border:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important;text-align:center!important;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.2;width:92%;padding:2px!important;margin:0!important;}
.am-days .am-event strong{font-size:10px;font-weight:800;white-space:normal;}
.am-days .am-event small{font-size:8px;opacity:.82;margin-top:2px;}
.am-days .am-event.flight{position:absolute;left:4%;right:4%;top:var(--time-pos,50%);transform:translateY(-50%);width:92%;}
.am-days .am-event.flight strong{font-size:15px;line-height:1.1;}
.am-days .am-event.travel strong{font-size:27px;line-height:1;}
.am-days .am-event.audit.remote small{opacity:.9;}
.am-legend{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:10px;font-size:9px;color:#748292;}
.am-legend span{display:flex;align-items:center;gap:5px}.am-legend i{width:11px;height:11px;border-radius:3px;display:inline-block}.am-legend i.audit{background:#2f6fae}.am-legend i.unconfirmed{background:#d6dbe1}.am-legend i.travel{background:#dceeff;border:1px solid #bdd6ee}.am-legend i.custom{background:#f7e8ec}.am-legend i.today{background:#fff;border:2px solid #f0c45b}

/* Protected date exact classes */
.am-event-modal-form{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto auto;gap:8px;align-items:end;}
.am-event-list{display:grid;gap:4px;margin-top:14px;max-height:260px;overflow:auto;}
.am-event-list>div{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:7px;border-bottom:1px solid #eef2f6;padding:7px 0;font-size:10px;}
.am-event-list small{color:#7b8998;}

/* Invoice exact cells */
.am-invoices-table .am-invoice-no-cell{width:70px;}.am-invoices-table .am-square-num{width:68px;text-align:center}.am-invoices-table .am-travel-days-cell{width:88px}.am-invoices-table .am-money-compact{width:92px}.am-invoices-table .am-amount-cell{width:105px}.am-invoices-table .am-profit-cell{width:92px;text-align:right}
.am-num-compact{max-width:54px!important;text-align:center!important}.am-money-compact input,.am-amount-cell input{max-width:80px!important;text-align:right!important}.am-invoice-no-cell input{max-width:52px!important;text-align:center!important;}

/* Migration settings exact classes */
.am-migration-panel{grid-column:1/-1;}
.am-migration-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0;}
.am-migration-actions form{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:0;}

@media(max-width:1450px){.am-dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:900px){.am-dashboard-kpis{grid-template-columns:1fr}.am-event-modal-form{grid-template-columns:1fr 1fr}.am-days .am-day{min-height:96px}}

/* Final checklist polish */
.am-enterprise-table tbody tr{cursor:pointer;transition:background .12s ease,box-shadow .12s ease;}
.am-enterprise-table tbody tr:hover td{box-shadow:inset 0 0 0 9999px rgba(233,243,252,.35);}
.am-enterprise-table .am-company-line{display:flex;align-items:center;gap:5px;}
.am-combo-mark{display:inline-flex;padding:2px 5px;border-radius:999px;background:#edf4fc;color:#4673a4;font-size:8px;font-weight:800;white-space:nowrap;}
.am-company-tools{display:flex;align-items:center;gap:5px;margin-top:2px;height:14px;}
.am-company-tools .am-combine-dropdown>summary{min-width:0;min-height:0;padding:1px 4px;border:0;background:transparent;color:#8090a0;font-size:8px;font-weight:700;}
.am-company-tools .am-combine-dropdown>summary:hover{background:#f0f5fa;color:#356895;}
.am-company-tools form{margin:0!important;}
.am-enterprise-table td.am-date-simple{color:#1767b4!important;font-size:11px!important;font-weight:800!important;text-align:center!important;background:transparent!important;border-radius:0!important;}
.am-enterprise-table .am-mode-pill{font-size:8px!important;padding:2px 5px!important;border:0!important;background:#f0f3f6!important;color:#647281!important;}
.am-enterprise-table .am-info-code{font-size:10px!important;}
.am-enterprise-table tr.is-combined td:first-child{box-shadow:inset 3px 0 0 #6d95c2;}
.am-enterprise-table tr.is-combined td:last-child{box-shadow:inset -1px 0 0 #adc5de;}
.am-days .am-event.flight .am-flight-mark{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:1px;}
.am-days .am-event.flight .am-flight-icon{font-size:26px;line-height:.95;}
.am-days .am-event.flight .am-flight-time{font-size:12px;font-weight:900;line-height:1;}


/* ===== Audit Manager v1.0: compact square statuses, health lights, inactive audits ===== */
.am-enterprise-table{min-width:1500px!important;table-layout:auto!important;font-size:10px!important}
.am-enterprise-table th,.am-enterprise-table td{font-family:inherit!important;font-size:10px!important;color:#334957!important;font-weight:600!important;vertical-align:middle!important}
.am-enterprise-table th{white-space:nowrap!important;text-align:left!important}
.am-enterprise-table .am-health-head,.am-enterprise-table .am-health-cell{width:34px!important;min-width:34px!important;max-width:34px!important;text-align:center!important;padding-left:5px!important;padding-right:5px!important}
.am-status-head,.am-status-cell{width:48px!important;min-width:48px!important;max-width:48px!important;text-align:center!important;padding-left:5px!important;padding-right:5px!important}
.am-status-select{appearance:auto!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;padding:0!important;border-radius:8px!important;text-align:center!important;text-align-last:center!important;font-size:15px!important;font-weight:900!important;line-height:38px!important;color:#354657!important}
.am-status-select.state-0{background:#f4f5f6!important}.am-status-select.state-1{background:#dff1fc!important;color:#27628f!important}.am-status-select.state-2{background:#1f5d99!important;color:#fff!important}.am-status-select.state-3{background:#def4e4!important;color:#267747!important}
.am-week-cell,.am-date-simple,.am-days-cell,.am-enterprise-table td.company,.am-enterprise-table td[data-cell-city],.am-enterprise-table td[data-cell-country]{font-size:10px!important;color:#334957!important;font-weight:650!important}
.am-week-cell span,.am-days-cell span,.am-company-line>span:first-child{font:inherit!important;color:inherit!important;font-weight:700!important}
.am-days-cell{text-align:center!important}
.am-date-simple{white-space:nowrap!important}
.am-company-line{align-items:center!important}.am-combo-mark{font-size:8px!important}
.am-actions-head,.am-row-actions{width:116px!important;min-width:116px!important;text-align:center!important}
.am-row-actions{display:flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}
.am-next-year{border:0!important;background:transparent!important;color:#2c6593!important;font:inherit!important;font-size:9px!important;font-weight:800!important;padding:4px!important;cursor:pointer}
.am-next-year:hover{text-decoration:underline}
.am-status-light{display:inline-block;width:12px;height:12px;border-radius:50%;background:#c9d0d6;border:1px solid rgba(0,0,0,.08);box-shadow:0 0 0 3px rgba(201,208,214,.22)}
.am-status-light.green{background:#37a65a;box-shadow:0 0 0 3px rgba(55,166,90,.16)}
.am-status-light.red{background:#d84a4a;box-shadow:0 0 0 3px rgba(216,74,74,.15)}
.am-status-light.yellow{background:#e4b33f;box-shadow:0 0 0 3px rgba(228,179,63,.16)}
.am-status-light.inactive{background:#626a72;box-shadow:0 0 0 3px rgba(98,106,114,.15)}
.am-inactive-switch{display:inline-flex;align-items:center;cursor:pointer}.am-inactive-switch input{position:absolute;opacity:0;pointer-events:none}.am-inactive-switch span{width:26px;height:14px;border-radius:12px;background:#cfd6dc;position:relative;transition:.15s}.am-inactive-switch span:after{content:"";position:absolute;width:10px;height:10px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.22);transition:.15s}.am-inactive-switch input:checked+span{background:#626a72}.am-inactive-switch input:checked+span:after{transform:translateX(12px)}
.am-enterprise-table tr.is-inactive td{background:#626970!important;color:#e2e5e7!important;text-decoration:line-through!important;opacity:.9}.am-enterprise-table tr.is-inactive td *{color:#e2e5e7!important}.am-enterprise-table tr.is-inactive .am-status-select,.am-enterprise-table tr.is-inactive .am-inactive-switch,.am-enterprise-table tr.is-inactive .am-next-year,.am-enterprise-table tr.is-inactive .am-status-light{text-decoration:none!important;opacity:1}.am-enterprise-table tr.is-inactive .am-status-select{filter:grayscale(1);background:#767d83!important}.am-enterprise-table tr.is-inactive .am-company-tools{opacity:.55}
.am-enterprise-table tr.past:not(.is-inactive) td{background:#edf8ef!important;color:#496253!important}
.am-split-date-details{border-top:1px solid #edf1f4;padding-top:7px;margin-top:2px}.am-split-date-details summary{cursor:pointer;font-size:10px;font-weight:800;color:#687989}.am-split-date-details summary small{font-weight:600;color:#9aa5ae;margin-left:4px}.am-split-date-details label{margin-top:8px}.am-split-date-details label small{display:block;color:#82909c;font-size:9px;margin-top:4px}
.am-flight-summary-title{display:flex;align-items:center;gap:12px}.am-flight-summary-title .am-status-light{width:14px;height:14px}
.am-miles-select{border-radius:7px!important;font-weight:800!important}.am-miles-select.yes{background:#def4e4!important;color:#267747!important;border-color:#b7dec2!important}.am-miles-select.no{background:#f3f4f5!important;color:#7a848d!important;border-color:#d8dde1!important}
.am-customer-location{display:block!important;margin-top:2px!important;color:#7b8793!important;font-size:9px!important;font-weight:600!important}
/* Calendar travel is now a centered band; audit cells still own the full cell. */
.am-day.has-travel:not(.has-audit):not(.has-unconfirmed):not(.past){background:#fff!important;color:#285f95!important}
.am-day.has-travel:not(.has-audit):not(.has-unconfirmed):not(.past)::before{content:"";position:absolute;left:0;right:0;top:50%;height:42%;transform:translateY(-50%);background:#dceeff;z-index:0}
.am-day.has-travel .am-events{z-index:2}.am-day .am-event.flight,.am-day .am-event.travel{position:absolute!important;left:0!important;right:0!important;top:50%!important;transform:translateY(-50%)!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;color:#285f95!important;display:flex!important;align-items:center!important;justify-content:center!important}
.am-day .am-event.flight .am-flight-mark{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;min-height:46px!important;width:100%!important}
.am-day .am-event.flight .am-flight-icon{font-size:26px!important;line-height:1!important}.am-day .am-event.flight .am-flight-time{position:absolute!important;left:50%!important;transform:translateX(-50%)!important;font-size:11px!important;font-weight:900!important;white-space:nowrap!important}.am-day .am-event.flight.morning .am-flight-time{bottom:31px!important}.am-day .am-event.flight.late .am-flight-time{top:31px!important}
.am-day .am-event.travel strong{font-size:28px!important}.am-day.has-audit .am-event.flight,.am-day.has-unconfirmed .am-event.flight,.am-day.has-audit .am-event.travel,.am-day.has-unconfirmed .am-event.travel{display:none!important}
.am-day.past::before{display:none!important}

/* v1.0 final alignment overrides */
.am-enterprise-table td.am-date-simple{color:#334957!important;font-size:10px!important;font-weight:650!important;text-align:center!important;}
.am-enterprise-table .am-week-cell,.am-enterprise-table .am-days-cell,.am-enterprise-table td.company,.am-enterprise-table td[data-cell-city],.am-enterprise-table td[data-cell-country]{font-size:10px!important;color:#334957!important;font-weight:650!important;}

/* v1.0 exact typography/alignment finishing */
.am-enterprise-table .am-week-cell span,.am-enterprise-table .am-days-cell span,.am-enterprise-table .am-company-line>span:first-child{font-family:inherit!important;font-size:10px!important;font-weight:650!important;color:#334957!important;}

/* ===== Audit Manager v1.0.1 alignment + flight transfer column ===== */
/* Keep checklist cells in the browser's table layout. Earlier inline-block date cells could shift every column visually. */
.am-enterprise-table td.am-date-simple,
.am-checklist td.am-date-simple{display:table-cell!important;vertical-align:middle!important;}
.am-enterprise-table thead th,
.am-enterprise-table tbody td{box-sizing:border-box!important;}
.am-enterprise-table .am-week-cell,
.am-enterprise-table td.am-date-simple,
.am-enterprise-table .am-days-cell,
.am-enterprise-table .am-status-cell{vertical-align:middle!important;}

/* Flight connection time now occupies its own column directly after Flight time. */
.am-flights-table{min-width:1380px;}
.am-flights-table .am-transfer-slot{min-width:86px;width:86px;background:#fbfcfd;}
.am-transfer-row{height:25px!important;}
.am-transfer-row td{height:25px!important;padding:0!important;border-top:0!important;border-bottom:0!important;background:#fff!important;}
.am-transfer-row td:first-child:before,
.am-transfer-row td:first-child:after{display:none!important;content:none!important;}
.am-transfer-row .am-transfer-cell{
  width:86px;min-width:86px;text-align:center!important;background:#eef4f8!important;
  border-left:1px solid #d7e2e9!important;border-right:1px solid #d7e2e9!important;
  color:#607383!important;white-space:nowrap;line-height:1.05;
}
.am-transfer-row .am-transfer-cell span{display:block;font-size:8px!important;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#7c8b96!important;}
.am-transfer-row .am-transfer-cell strong{display:block;font-size:11px!important;font-weight:900;color:#354d5e!important;margin-top:1px;}

/* Miles claimed: red cross / green check only. */
.am-flights-table .am-miles-select{min-width:48px!important;width:48px!important;height:30px!important;padding:0 16px 0 7px!important;text-align:center!important;font-size:14px!important;font-weight:950!important;}
.am-flights-table .am-miles-select.no{background:#fde9e9!important;color:#b73535!important;border-color:#efc2c2!important;}
.am-flights-table .am-miles-select.yes{background:#e1f5e7!important;color:#237943!important;border-color:#b8dfc4!important;}

/* v1.0.2 dashboard comparisons + compact modal combination + AP N/A */
.am-dashboard-kpis{grid-template-columns:1.18fr repeat(4,minmax(0,1fr))!important}
.am-dashboard-kpis .am-kpi-card.days{border-top:3px solid #7089a4}
.am-kpi-compare{display:inline-flex!important;align-items:center;width:max-content;margin-top:6px;padding:3px 7px;border-radius:999px;font-size:9px!important;font-weight:800!important;line-height:1.2}
.am-kpi-compare.up{background:#e3f5e9;color:#237747!important}.am-kpi-compare.down{background:#fde8e7;color:#aa3f39!important}.am-kpi-compare.flat{background:#eef1f4;color:#697783!important}
.am-dashboard-todos{grid-column:1/-1}
.am-dashboard-todo-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}
.am-dashboard-todo-list>div{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px 10px;border:1px solid #e8edf1;border-radius:9px;background:#fbfcfd}
.am-dashboard-todo-list strong{font-size:11px;color:#2b4054;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.am-dashboard-todo-list small{font-size:9px;color:#84909b}.am-task-kind{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:3px 6px;background:#e6f0fa;color:#2b6391;font-size:8px;font-weight:900;text-transform:uppercase}
.am-status-select.state-4{background:#edf0f2!important;border-color:#d6dce1!important;color:#616d76!important;font-size:10px!important}
.am-todo-legend .state-4 i{background:#8f9aa3}.am-todo-legend .state-4 small{margin:0;color:inherit;font-size:8px}
.am-modal-combine{border:1px solid #dfe6ec;border-radius:9px;padding:0;background:#fafcfd}.am-modal-combine>summary{cursor:pointer;padding:10px 12px;font-size:11px;font-weight:850;color:#334b60;list-style:none}.am-modal-combine>summary::-webkit-details-marker{display:none}.am-modal-combine>summary small{font-size:8px;color:#8c98a3;margin-left:5px;text-transform:uppercase}.am-modal-combine-list{max-height:190px;overflow:auto;border-top:1px solid #e6ebef;padding:6px}.am-modal-combine-list>label{display:flex;align-items:flex-start;gap:8px;padding:7px 8px;border-radius:7px;cursor:pointer}.am-modal-combine-list>label:hover{background:#eef5fa}.am-modal-combine-list input{margin-top:2px}.am-modal-combine-list span{display:flex;flex-direction:column;min-width:0}.am-modal-combine-list strong{font-size:10px;color:#30485c}.am-modal-combine-list small{font-size:8px;color:#7d8b96;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:1700px){.am-dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:1100px){.am-dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.am-dashboard-todo-list{grid-template-columns:1fr}}
@media(max-width:700px){.am-dashboard-kpis{grid-template-columns:1fr!important}}


/* ===== Audit Manager v1.0.3 ===== */
/* Consistent table headers: centered, same typography, and multi-word titles wrap when space is reduced. */
.am-table thead th{font-family:inherit!important;font-size:10px!important;font-weight:800!important;line-height:1.15!important;text-align:center!important;vertical-align:middle!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;color:#fff!important;background:#171d22!important;}
/* Checklist visual groups without adding more columns/height. */
.am-checklist th.am-group-start,.am-checklist td.am-group-start{border-left:3px solid #c8d2db!important;}
.am-checklist thead th.am-group-start{border-left-color:#8194a4!important;}
.am-company-sub{min-height:11px;margin-top:2px;font-size:8px;font-weight:750;letter-spacing:.02em;color:#71869a;text-transform:lowercase;}
.am-enterprise-table tr.is-combined td:first-child{border-left:2px solid #7ea3c8!important;}
.am-enterprise-table tr.is-combined td:last-child{border-right:2px solid #7ea3c8!important;}
.am-enterprise-table tr.combo-first td{border-top:2px solid #7ea3c8!important;}
.am-enterprise-table tr.combo-last td{border-bottom:2px solid #7ea3c8!important;}
.am-combo-mark,.am-company-tools{display:none!important;}
/* Flights: core date/time/airport columns share one visual language. */
.am-flights-table td.am-flight-core{font-family:inherit!important;font-size:10px!important;font-weight:650!important;color:#334957!important;text-align:center!important;}
.am-flights-table td.am-flight-core strong{font:inherit!important;font-weight:750!important;color:#334957!important;}
.am-flights-table td.am-flight-airport small{display:block;margin-top:2px;font-size:8px!important;font-weight:600!important;color:#7b8894!important;white-space:nowrap;}
.am-flights-table .am-transfer-cell{width:88px;min-width:88px;text-align:center!important;background:#eef4f8!important;color:#607383!important;border-left:1px solid #d7e2e9!important;border-right:1px solid #d7e2e9!important;vertical-align:middle!important;}
.am-flights-table .am-transfer-cell.am-transfer-merged{background:#e4eef5!important;border-top:1px solid #c9d8e2!important;border-bottom:1px solid #c9d8e2!important;}
.am-flights-table .am-transfer-cell span{display:block;font-size:8px!important;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#7c8b96!important;}
.am-flights-table .am-transfer-cell strong{display:block;font-size:11px!important;font-weight:900;color:#354d5e!important;margin-top:2px;}
.am-flights-table .am-transfer-slot{text-align:center!important;color:#b2bac1!important;background:#fbfcfd!important;}
/* Miles: explicit red cross / green check. */
.am-flights-table .am-miles-select.no{background:#fde9e9!important;color:#b73535!important;border-color:#efc2c2!important;}
.am-flights-table .am-miles-select.yes{background:#e1f5e7!important;color:#237943!important;border-color:#b8dfc4!important;}
/* Invoice register is read-only; editing happens in modal. */
.am-invoice-row{cursor:pointer;}
.am-invoice-row:hover td{box-shadow:inset 0 0 0 9999px rgba(233,243,252,.32);}
.am-customer-main{display:flex;flex-direction:column;align-items:flex-start;gap:2px;}
.am-customer-main .am-customer-location{display:block!important;margin:0!important;}
.am-invoice-table td{font-family:inherit!important;font-size:10px!important;font-weight:650!important;color:#334957!important;vertical-align:middle!important;}
.am-invoice-table .am-shared-invoice-cell{text-align:center!important;font-weight:750!important;background:#f8fafc!important;}
.am-invoice-table .am-travel-days-cell{text-align:center!important;font-weight:800!important;}
.am-invoice-table .am-travel-days-cell.estimated{color:#c6423c!important;}
.am-estimate-sample{display:inline-block;margin-right:5px;color:#c6423c;font-weight:900;}
.am-invoice-modal-card{max-width:720px!important;}
.am-estimate-check{align-self:end;padding-bottom:8px;}
/* Calendar: one plane glyph for takeoff, in-flight and landing; past always stays grey. */
.am-day .am-event.flight .am-flight-icon{font-family:inherit!important;font-size:28px!important;}
.am-day.past,.am-day.past.has-travel,.am-day.past.has-audit,.am-day.past.has-unconfirmed{background:#d8dadd!important;color:#51575e!important;}
.am-day.past::before{display:none!important;}
.am-days .am-event.audit small{font-size:8px!important;font-weight:600!important;opacity:.82!important;margin-top:3px!important;}

/* ===== Audit Manager v1.1.0 · rebuilt Flights register ===== */
.am-flight-api-note{margin-bottom:14px}
.am-trip-register{display:flex;flex-direction:column;gap:16px}
.am-trip-card{border:1px solid #dfe6ec;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 2px 8px rgba(31,51,68,.05)}
.am-trip-card.is-past-trip{background:#f3f7f4;border-color:#d7e2da}
.am-trip-card.is-past-trip .am-trip-table{opacity:.78}
.am-trip-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 15px;background:#f8fafc;border-bottom:1px solid #e6ebef;cursor:pointer}
.am-trip-card.is-past-trip .am-trip-head{background:#eaf1ec}
.am-trip-heading{display:flex;align-items:center;gap:10px;min-width:0}.am-trip-heading h2{margin:0;font-size:14px!important;color:#263d50}.am-trip-heading p{margin:2px 0 0;font-size:9px!important;color:#788995}
.am-trip-meta{display:flex;align-items:center;gap:10px}.am-trip-meta>strong{font-size:13px;color:#2e4b60;white-space:nowrap}.am-past-trip-label{padding:3px 7px;border-radius:999px;background:#d8e5dc;color:#5d7565;font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.am-combined-mini{color:#5c7890;font-weight:800}
.am-trip-direction{padding:0 14px 12px}.am-trip-direction+.am-trip-direction{border-top:1px solid #edf1f4}.am-trip-direction-title{padding:10px 2px 7px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:#49657b}.am-trip-empty{padding:10px;border:1px dashed #d8e0e6;border-radius:8px;color:#8997a2;font-size:10px;text-align:center}
.am-trip-table{min-width:1120px}.am-trip-table td{font-family:inherit!important;font-size:10px!important;color:#334957!important;vertical-align:middle!important;text-align:center}.am-trip-table td.am-flight-time-strong{font-size:12px!important;font-weight:900!important;color:#233f55!important}.am-trip-table td.am-flight-time-strong small{display:block;font-size:8px!important;color:#8b99a3!important;font-weight:650}.am-airport-stack strong{display:block;font-size:11px;color:#2e4a5f}.am-airport-stack small{display:block;margin-top:2px;font-size:8px;color:#82909a}
.am-transfer-separator td{padding:3px 8px!important;background:#f4f7f9!important;border-top:0!important;border-bottom:0!important;text-align:center!important;height:22px!important}.am-transfer-separator span{display:inline-flex;padding:2px 9px;border-radius:999px;background:#e7eef3;color:#627889;font-size:8px;font-weight:850;letter-spacing:.02em}
.am-miles-select{width:54px!important;min-width:54px!important;height:29px!important;text-align:center!important;font-weight:900!important}.am-miles-select.yes{background:#e1f5e7!important;color:#237943!important;border-color:#b8dfc4!important}.am-miles-select.no{background:#fde9e9!important;color:#b73535!important;border-color:#efc2c2!important}.am-miles-select.na{background:#eceff1!important;color:#69757e!important;border-color:#d4d9dd!important;font-size:9px!important}
.am-trip-modal-card{width:min(1180px,94vw)!important;max-width:1180px!important;max-height:92vh!important;overflow:auto!important}.am-trip-form-section{margin:12px 0;padding:13px;border:1px solid #dfe6ec;border-radius:10px;background:#fbfcfd}.am-trip-form-section.main{background:#f4f8fb}.am-trip-form-section h3{margin:0 0 4px;font-size:12px;color:#304b60}.am-trip-main-grid{display:grid;grid-template-columns:minmax(300px,1.6fr) minmax(220px,.8fr);gap:12px}.am-trip-form-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.am-trip-form-heading p{margin:0;font-size:9px;color:#83919c}
.am-trip-segment{padding:11px;border:1px solid #e2e8ed;border-radius:9px;background:#fff;margin-bottom:9px}.am-trip-segment-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.am-trip-segment-head strong{font-size:10px;color:#39566d}.am-remove-segment{border:0;background:transparent;color:#a34e4e;font-size:9px;cursor:pointer}.am-trip-segment-grid{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:8px}.am-trip-segment-grid label{font-size:8px!important;font-weight:800!important;color:#6c7d89}.am-trip-segment-grid input,.am-trip-segment-grid select{width:100%;min-height:32px;font-size:10px!important}.am-trip-duration{display:flex;flex-direction:column;justify-content:center;align-items:center;border:1px solid #e5eaee;border-radius:7px;background:#f8fafb}.am-trip-duration span{font-size:8px;color:#85929c}.am-trip-duration strong{font-size:11px;color:#38546a;margin-top:2px}.am-schedule-assist{grid-column:span 2;display:flex;align-items:center;gap:7px;position:relative}.am-schedule-assist>small{font-size:8px;color:#8a98a2}.am-schedule-assist [data-schedule-results]{position:absolute;top:34px;left:0;z-index:25;min-width:310px;max-height:220px;overflow:auto;background:white;border:1px solid #d9e1e7;border-radius:8px;box-shadow:0 8px 22px rgba(32,52,68,.16)}.am-schedule-option{display:flex;width:100%;justify-content:space-between;gap:12px;padding:8px 10px;border:0;border-bottom:1px solid #edf0f2;background:#fff;text-align:left;cursor:pointer}.am-schedule-option:hover{background:#eef6fb}.am-schedule-option strong{font-size:10px;color:#2e4a60}.am-schedule-option span{font-size:9px;color:#687d8d}.am-schedule-warning{padding:6px 8px;background:#fff4df;color:#8a651f;font-size:8px}
.am-field-note{font-size:9px;color:#7b8994;line-height:1.45}
@media(max-width:1300px){.am-trip-segment-grid{grid-template-columns:repeat(3,minmax(130px,1fr))}.am-schedule-assist{grid-column:span 1}}
@media(max-width:760px){.am-trip-main-grid,.am-trip-segment-grid{grid-template-columns:1fr}.am-trip-head{align-items:flex-start;flex-direction:column}.am-trip-meta{width:100%;justify-content:space-between}}

/* v1.1.1 Flights reliability + register refinements */
.am-trip-card{border:2px solid #d3dee6!important;box-shadow:0 2px 10px rgba(31,51,68,.07)!important}
.am-trip-card.is-past-trip{border-color:#cbd9cf!important}
.am-trip-head{display:grid!important;grid-template-columns:36px minmax(0,1fr) auto!important;align-items:center!important;column-gap:10px!important}
.am-trip-number{font-size:10px;font-weight:800;color:#92a0aa;text-align:center;letter-spacing:.04em;user-select:none}
.am-trip-meta-state{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.am-trip-next-year{border:1px solid #cbd8e1;background:#fff;color:#5c7180;border-radius:6px;padding:3px 7px;font-size:8px;font-weight:800;cursor:pointer;line-height:1.15}
.am-trip-next-year:hover{border-color:#91adc0;color:#2d607f;background:#f7fbfd}
.am-trip-table td.am-flight-date-strong,.am-trip-table td.am-flight-time-strong{font-family:inherit!important;font-size:11px!important;font-weight:850!important;color:#2d4658!important;white-space:nowrap}
.am-trip-table td.am-flight-date-strong{letter-spacing:0!important}
.am-day-offset{font-size:7px!important;font-weight:900;color:#2f75a5;vertical-align:super;margin-left:2px;line-height:1}
.am-miles-select{width:66px!important;min-width:66px!important;padding:0 18px 0 6px!important;text-align:center!important;text-align-last:center!important;-webkit-appearance:auto!important;appearance:auto!important;color:#334957!important}
.am-miles-select.yes{background:#e1f5e7!important;color:#237943!important;border-color:#b8dfc4!important}
.am-miles-select.no{background:#fde9e9!important;color:#b73535!important;border-color:#efc2c2!important}
.am-miles-select.na{background:#eceff1!important;color:#69757e!important;border-color:#d4d9dd!important}
.am-modal.is-open{display:grid!important}
@media(max-width:760px){.am-trip-head{grid-template-columns:30px 1fr!important}.am-trip-meta{grid-column:2}.am-trip-meta-state{align-items:flex-start}}

/* ===== v1.1.2 checklist cleanup + reliable modal visual language ===== */
/* Every audit row gets one continuous separator, including Start/End. */
.am-checklist tbody tr > td{
  border-bottom:1px solid #e3e9ed!important;
  background-clip:padding-box!important;
}
.am-checklist tbody tr:last-child > td{border-bottom-color:#d8e0e5!important;}
.am-checklist td.am-date-simple{border-bottom:1px solid #e3e9ed!important;}

/* Group boundaries are white channels rather than grey bars. */
.am-checklist th.am-group-start,.am-checklist td.am-group-start{
  border-left:4px solid #fff!important;
}
.am-checklist thead th.am-group-start{border-left-color:#fff!important;}

/* Make the date block materially tighter on wide displays. */
.am-checklist .am-health-head,.am-checklist .am-health-cell{width:26px!important;min-width:26px!important;max-width:26px!important;padding-left:3px!important;padding-right:3px!important;}
.am-checklist .am-col-week,.am-checklist .am-week-cell{width:46px!important;min-width:46px!important;max-width:54px!important;padding-left:4px!important;padding-right:4px!important;text-align:center!important;}
.am-checklist .am-col-date,.am-checklist td.am-date-simple{width:76px!important;min-width:76px!important;max-width:88px!important;padding-left:4px!important;padding-right:4px!important;text-align:center!important;}
.am-checklist .am-col-days,.am-checklist .am-days-cell{width:48px!important;min-width:48px!important;max-width:54px!important;padding-left:4px!important;padding-right:4px!important;text-align:center!important;}
.am-checklist .am-col-customer,.am-checklist td.am-customer-cell{min-width:150px!important;width:170px!important;}

/* Customer cell follows the cleaner Invoice hierarchy. */
.am-checklist .am-customer-main{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:1px!important;min-width:0;}
.am-checklist .am-customer-main>strong{font-size:11px!important;font-weight:800!important;line-height:1.2!important;color:#263f53!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.am-checklist .am-customer-location{display:block!important;font-size:8.5px!important;line-height:1.2!important;font-weight:600!important;color:#7c8c98!important;margin:1px 0 0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.am-checklist .am-company-sub{display:block!important;font-size:8px!important;line-height:1.15!important;font-weight:800!important;color:#4d7697!important;text-transform:lowercase;margin-top:2px!important;}
.am-checklist .am-company-sub:empty{display:none!important;}

/* Combined audit outline: thinner footprint, darker/more legible tone. */
.am-enterprise-table tr.is-combined > td:first-child{border-left:1px solid #2f78ad!important;}
.am-enterprise-table tr.is-combined > td:last-child{border-right:1px solid #2f78ad!important;}
.am-enterprise-table tr.is-combined.combo-first > td{border-top:1px solid #2f78ad!important;}
.am-enterprise-table tr.is-combined.combo-last > td{border-bottom:1px solid #2f78ad!important;}

/* Trip modal now uses the same restrained Audit Manager visual language. */
.am-trip-modal-card{width:min(1120px,calc(100vw - 36px))!important;max-width:1120px!important;border-radius:12px!important;border:1px solid #d8e1e7!important;background:#f7f9fb!important;}
.am-trip-modal-card .am-modal-head{background:#fff!important;padding:14px 17px!important;}
.am-trip-modal-card .am-modal-head h2{font-size:17px!important;font-weight:800!important;color:#263f52!important;}
.am-trip-modal-card .am-modal-head p{font-size:9px!important;color:#81909a!important;}
.am-trip-editor{padding:14px 16px 16px!important;}
.am-trip-form-section{background:#fff!important;border:1px solid #dfe6eb!important;border-radius:9px!important;padding:12px!important;margin:0 0 10px!important;box-shadow:none!important;}
.am-trip-form-section.main{background:#fff!important;border-left:3px solid #5f91bb!important;}
.am-trip-section-kicker,.am-direction-pill{display:inline-block;font-size:7.5px!important;font-weight:900!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:#5d7d97!important;margin-bottom:3px!important;}
.am-direction-pill{padding:3px 6px;border-radius:5px;background:#edf4f9;color:#3f6f94!important;}
.am-direction-section.return .am-direction-pill{background:#f0f3f6;color:#637887!important;}
.am-trip-form-section h3{font-size:12px!important;font-weight:800!important;color:#304b60!important;margin:0 0 8px!important;}
.am-trip-form-heading h3{margin:3px 0 0!important;}
.am-trip-form-heading p{font-size:8.5px!important;color:#8996a0!important;margin-top:2px!important;}
.am-trip-main-grid label,.am-trip-segment-grid label{font-size:8px!important;font-weight:800!important;color:#6d7e8a!important;letter-spacing:.02em!important;text-transform:none!important;}
.am-trip-main-grid input,.am-trip-main-grid select,.am-trip-segment-grid input,.am-trip-segment-grid select{border:1px solid #cfd9e0!important;border-radius:6px!important;min-height:31px!important;background:#fff!important;color:#2e4658!important;font-size:10px!important;box-shadow:none!important;}
.am-trip-segment{border:1px solid #e0e6eb!important;border-radius:8px!important;background:#fbfcfd!important;padding:10px!important;margin-bottom:8px!important;}
.am-trip-segment-head{padding-bottom:6px!important;margin-bottom:8px!important;border-bottom:1px solid #edf1f4!important;}
.am-trip-segment-head strong{font-size:10px!important;color:#3b566b!important;}
.am-remove-segment{font-size:8px!important;font-weight:800!important;color:#a65f5f!important;}
.am-trip-duration{min-height:31px!important;border-radius:6px!important;background:#f2f6f8!important;border-color:#dce4e9!important;}
.am-trip-duration span{font-size:7px!important}.am-trip-duration strong{font-size:10px!important;}
.am-trip-modal-card .am-primary,.am-trip-modal-card .am-secondary,.am-trip-edit-btn{border-radius:6px!important;min-height:29px!important;padding:6px 10px!important;font-size:9px!important;font-weight:800!important;line-height:1!important;}
.am-trip-edit-btn{white-space:nowrap!important;}
.am-trip-modal-card .am-modal-actions{background:#fff!important;margin:10px -12px -12px!important;padding:11px 12px!important;border-top:1px solid #e4eaee!important;border-radius:0 0 9px 9px!important;}

/* Invoice modal follows the same compact visual system. */
.am-invoice-modal-card{border-radius:12px!important;border:1px solid #d8e1e7!important;}
.am-invoice-modal-card .am-modal-head h2{font-size:17px!important;font-weight:800!important;color:#263f52!important;}
.am-invoice-modal-card .am-compact-grid input{min-height:32px!important;border-radius:6px!important;border-color:#cfd9e0!important;}

@media(max-width:900px){
 .am-checklist .am-col-customer,.am-checklist td.am-customer-cell{min-width:135px!important;width:145px!important;}
 .am-trip-modal-card{width:calc(100vw - 16px)!important;}
}
.am-enterprise-table tr.is-combined > td:first-child,.am-enterprise-table tr.is-combined > td:last-child{box-shadow:none!important;}

/* ===== v1.2.0 refinements ===== */
/* Checklist filters / alignment */
.am-checklist th:nth-child(12),.am-checklist td:nth-child(12),.am-checklist th:nth-child(13),.am-checklist td:nth-child(13){text-align:center!important;}
.am-customer-multi{position:relative;min-width:220px}.am-filter-chips{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px}.am-filter-chips span{display:inline-flex;align-items:center;gap:3px;padding:2px 5px;border-radius:999px;background:#e9f2f8;color:#365d78;font-size:8px;font-weight:800}.am-filter-chips button{border:0;background:none;color:inherit;padding:0;cursor:pointer;font-size:11px}.am-filter-suggestions{display:none;position:absolute;z-index:90;left:0;top:52px;width:100%;max-height:230px;overflow:auto;background:#fff;border:1px solid #d7e0e6;border-radius:8px;box-shadow:0 12px 28px rgba(28,47,61,.18)}.am-filter-suggestions.show{display:block}.am-filter-suggestions button{display:block;width:100%;padding:7px 9px;border:0;border-bottom:1px solid #eef2f4;background:#fff;text-align:left;font-size:9px;color:#334b5d;cursor:pointer}.am-filter-suggestions button:hover{background:#eef6fa}

/* Miles status: selected state remains visible and colour-coded. */
.am-miles-select.warn{background:#fff3c9!important;color:#9a6a00!important;border-color:#edce69!important;font-weight:900!important}

/* Invoice register: compact, balanced and status-aware. */
.am-invoice-table{min-width:940px!important;table-layout:auto!important}.am-invoice-table th,.am-invoice-table td{text-align:center!important}.am-invoice-table th:nth-child(1){width:128px!important;min-width:128px!important}.am-invoice-table th:nth-child(2){width:180px!important;min-width:150px!important;text-align:left!important}.am-invoice-table td:nth-child(2){text-align:left!important}.am-invoice-table th:nth-child(3){width:72px!important;min-width:72px!important}.am-invoice-table th:nth-child(4),.am-invoice-table th:nth-child(5),.am-invoice-table th:nth-child(6){width:64px!important;min-width:58px!important}.am-invoice-table th:nth-child(7){width:76px!important;min-width:70px!important}.am-invoice-table th:nth-child(8){width:100px!important;min-width:94px!important}.am-invoice-table th:nth-child(9){width:88px!important;min-width:82px!important}.am-invoice-row.invoice-pending>td{background:#e7f3fc!important}.am-invoice-row.invoice-paid>td{background:#e8f4e7!important}.am-invoice-row.invoice-pending .am-shared-invoice-cell{background:#dceefa!important}.am-invoice-row.invoice-paid .am-shared-invoice-cell{background:#deefdd!important}.am-invoice-member-card{border:1px solid #dde5ea;border-radius:8px;padding:10px;margin:8px 0;background:#fafcfd}.am-invoice-member-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.am-invoice-member-head strong{display:block;font-size:11px;color:#304b60}.am-invoice-member-head small{display:block;font-size:8px;color:#7c8b96;margin-top:2px}.am-invoice-member-head>span{font-size:8px;color:#70808b}.am-invoice-member-head b{font-size:12px;color:#315e7d}.am-invoice-common{border-bottom:1px solid #e5eaee;padding-bottom:10px;margin-bottom:10px}

/* Trip editor helpers. */
.am-danger{border:1px solid #d7a5a5;background:#fff5f5;color:#a63f3f;border-radius:6px;padding:7px 10px;font-size:9px;font-weight:850;cursor:pointer}.am-danger:hover{background:#fde8e8}.am-action-spacer{flex:1}.am-schedule-assist select{width:100%;min-height:31px;border:1px solid #cfd9e0;border-radius:6px;background:#fff;color:#2f485b;font-size:9px;padding:5px 7px}.am-schedule-assist small{display:block;font-size:8px;color:#778994;margin-bottom:4px}.am-trip-segment input[type=date]:invalid{box-shadow:none}

/* Calendar: past always wins, including event surfaces. */
.am-days .am-day.past,.am-days .am-day.past.has-audit,.am-days .am-day.past.has-unconfirmed,.am-days .am-day.past.has-travel,.am-days .am-day.past.has-custom{background:#d8dadd!important;color:#51575e!important}.am-days .am-day.past::before{display:none!important}.am-days .am-day.past .am-event,.am-days .am-day.past .am-event *{background:transparent!important;color:#51575e!important;border-color:transparent!important}.am-days .am-day.past .am-date{color:#6c7177!important}.am-days .am-day.has-audit:not(.past) .am-event.flight.landing{display:flex!important;position:relative!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important;margin-top:4px!important;color:inherit!important}.am-days .am-day.has-audit:not(.past) .am-event.flight.landing .am-flight-mark{min-height:auto!important}.am-days .am-day.has-audit:not(.past) .am-event.flight.landing .am-flight-icon{font-size:17px!important}.am-days .am-day.has-audit:not(.past) .am-event.flight.landing .am-flight-time{position:static!important;transform:none!important;font-size:9px!important;margin-left:3px}.am-days .am-day.has-audit:not(.past) .am-event.flight.landing .am-flight-mark{flex-direction:row!important}

/* Overall UI scale stays smooth on large monitors. */
#am-ui-scale{min-width:150px}.am-ui-toolbar input[type=range]{accent-color:#477fa5}

/* ===== Audit Manager v1.2.2 refinements ===== */
/* Checklist: make Flights status a compact, centered visual control. */
.am-checklist th:nth-child(8),.am-checklist-flights-cell{text-align:center!important;vertical-align:middle!important;}
.am-checklist-flights-cell .am-flight-status-icons{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;min-width:58px!important;padding:5px 8px!important;text-decoration:none!important;border-radius:8px!important;line-height:1!important;}
.am-checklist-flights-cell .am-flight-plane{font-size:18px!important;line-height:1!important;}
.am-checklist-flights-cell .am-flight-check{font-size:15px!important;font-weight:950!important;line-height:1!important;}
.am-checklist-flights-cell .am-flight-na{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:58px!important;min-height:28px!important;margin:0 auto!important;}

/* Flights filters: same visual language as Checklist, with a clear Search action. */
.am-flight-filter{display:flex!important;align-items:flex-end!important;gap:9px!important;flex-wrap:wrap!important;}
.am-flight-filter label{min-width:118px!important;}
.am-flight-filter label:last-of-type{min-width:170px!important;}
.am-flight-filter .am-filter-search-button{min-height:34px!important;padding:8px 15px!important;border-radius:8px!important;align-self:flex-end!important;}

/* Statistics: icon-led cards and secondary conversion text under the primary number. */
.am-stat-kpis>div{position:relative!important;overflow:hidden!important;min-height:108px!important;padding:14px 15px 13px 15px!important;}
.am-stat-kpis .am-stat-icon{position:absolute!important;right:12px!important;top:10px!important;width:30px!important;height:30px!important;display:grid!important;place-items:center!important;border-radius:9px!important;background:#edf5fb!important;color:#356d98!important;font-size:15px!important;font-weight:900!important;opacity:.95!important;}
.am-stat-kpis>div:nth-child(2) .am-stat-icon{background:#f3eefb!important;color:#735b9a!important;}
.am-stat-kpis>div:nth-child(5) .am-stat-icon,.am-stat-kpis>div:nth-child(6) .am-stat-icon{background:#edf7f2!important;color:#4e8065!important;}
.am-stat-kpis>div:nth-child(7) .am-stat-icon{background:#eef3fa!important;color:#526f96!important;}
.am-stat-kpis>div:nth-child(8) .am-stat-icon{background:#fff5e4!important;color:#92712b!important;}
.am-stat-kpis .am-stat-sub{display:block!important;margin-top:5px!important;font-size:9px!important;color:#7d8994!important;font-weight:700!important;line-height:1.2!important;}

/* Dashboard: stronger visual hierarchy without turning it into an editing surface. */
.am-dashboard-head{padding:4px 2px 10px!important;border-bottom:1px solid #edf1f4!important;}
.am-dashboard-kpis-visual .am-kpi-card{position:relative!important;overflow:hidden!important;background:linear-gradient(145deg,#ffffff 0%,#f8fbfd 100%)!important;box-shadow:0 5px 18px rgba(35,57,76,.055)!important;}
.am-dashboard-kpis-visual .am-kpi-card:after{content:"";position:absolute;right:-28px;bottom:-35px;width:92px;height:92px;border-radius:50%;background:rgba(74,126,166,.055);}
.am-dashboard-kpis-visual .am-kpi-card.primary{background:linear-gradient(145deg,#f2f8fd,#fff)!important;border-color:#d5e6f2!important;}
.am-dashboard-kpis-visual .am-kpi-card.money{background:linear-gradient(145deg,#f3faf5,#fff)!important;}
.am-dashboard-kpis-visual .am-kpi-card.todo{background:linear-gradient(145deg,#f4f8fc,#fff)!important;}
.am-dash-kpi-icon{position:absolute!important;right:13px!important;top:12px!important;width:29px!important;height:29px!important;display:grid!important;place-items:center!important;border-radius:9px!important;background:#eaf2f8!important;color:#3d739d!important;font-size:14px!important;font-weight:900!important;z-index:1!important;}
.am-kpi-card.money .am-dash-kpi-icon{background:#eaf6ee!important;color:#4d815f!important;}
.am-kpi-card.todo .am-dash-kpi-icon{background:#eaf2fb!important;color:#2f6ca1!important;}
.am-dashboard-card{box-shadow:0 4px 16px rgba(35,57,76,.045)!important;}
.am-card-head h2{display:flex!important;align-items:center!important;gap:7px!important;}
.am-card-icon{display:inline-grid!important;place-items:center!important;width:24px!important;height:24px!important;border-radius:7px!important;background:#edf4f9!important;color:#44779c!important;font-size:11px!important;}
.am-chart-card{background:linear-gradient(180deg,#fff,#fbfcfd)!important;}
.am-upcoming-list>div{border-left:3px solid #7ba8c7!important;padding-left:10px!important;}
.am-dashboard-todo-list>div{box-shadow:0 1px 4px rgba(32,52,68,.03)!important;}

/* Calendar: when a return flight shares an audit day, keep it directly under customer/country. */
.am-days .am-day.has-audit:not(.past) .am-event.flight.landing{display:flex!important;position:relative!important;inset:auto!important;transform:none!important;width:100%!important;margin:5px 0 0!important;padding:2px 0!important;justify-content:center!important;align-items:center!important;order:20!important;color:#fff!important;}
.am-days .am-day.has-audit:not(.past) .am-event.flight.landing .am-flight-mark{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-height:auto!important;width:auto!important;}
.am-days .am-day.has-audit:not(.past) .am-event.flight.landing .am-flight-icon{font-size:17px!important;color:#fff!important;}
.am-days .am-day.has-audit:not(.past) .am-event.flight.landing .am-flight-time{position:static!important;transform:none!important;font-size:9px!important;color:#fff!important;margin:0!important;}

/* UI editor: explicit visible popover and persistent scale controls. */
.am-ui-popover[hidden]{display:none!important;}
.am-ui-popover.is-open{display:block!important;}
.am-ui-popover label{display:grid!important;grid-template-columns:92px 1fr!important;gap:8px!important;align-items:center!important;margin:9px 0!important;font-size:10px!important;color:#5d6b7d!important;}
.am-ui-popover label span{font-weight:900!important;color:#345a77!important;}
.am-ui-popover input[type=range]{width:100%!important;min-width:0!important;}
.am-ui-pop-actions{display:flex!important;justify-content:flex-end!important;gap:7px!important;margin-top:12px!important;padding-top:10px!important;border-top:1px solid #edf1f5!important;}
.am-ui-pop-head{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-bottom:7px!important;}.am-ui-pop-head strong{font-size:12px!important;color:#304a5e!important}.am-ui-pop-head button{border:0!important;background:transparent!important;color:#7d8993!important;font-size:17px!important;cursor:pointer!important;padding:0 2px!important}.am-ui-popover label>span{font-size:9px!important;font-weight:800!important;color:#667784!important}.am-ui-popover label>span b{color:#315f80!important;font-size:9px!important}.am-ui-popover>small{display:block!important;margin-top:8px!important;color:#8a959d!important;font-size:8px!important;line-height:1.4!important}


/* ===== Audit Manager v1.2.3 · safer trip modal + data font sizing ===== */
:root{--am-data-font-sm:8px;--am-data-font:10px;--am-data-font-lg:11px;--am-data-font-xl:12px;--am-data-font-kpi:19.8px;}
/* The Display control now changes data typography only; it does not zoom or resize the app shell. */
.am-table tbody td{font-size:var(--am-data-font)!important;}
.am-table tbody td input,.am-table tbody td select,.am-table tbody td textarea,.am-table tbody td button:not(.am-icon-only){font-size:var(--am-data-font)!important;}
.am-table tbody td strong,.am-customer-main,.am-airport-stack strong,.am-trip-heading h2{font-size:var(--am-data-font-lg)!important;}
.am-table tbody td small,.am-customer-location,.am-company-sub,.am-airport-stack small,.am-trip-heading p,.am-trip-meta-state,.am-past-trip-label{font-size:var(--am-data-font-sm)!important;}
.am-days-badge,.am-flight-time-strong,.am-trip-table td.am-flight-time-strong{font-size:var(--am-data-font-xl)!important;}
.am-trip-table td,.am-invoice-table td,.am-checklist tbody td{font-size:var(--am-data-font)!important;}
.am-trip-table td small,.am-invoice-table td small,.am-checklist tbody td small{font-size:var(--am-data-font-sm)!important;}
.am-trip-table td strong,.am-invoice-table td strong,.am-checklist tbody td strong{font-size:var(--am-data-font-lg)!important;}
.am-kpi-card>strong,.am-stat-feature>strong{font-size:var(--am-data-font-kpi)!important;}
.am-kpi-card>span:not(.am-dash-kpi-icon),.am-stat-feature .am-stat-sub{font-size:var(--am-data-font)!important;}
/* Clicking the dimmed area around the Trip editor intentionally does nothing. */
#am-trip-modal>.am-modal-backdrop{cursor:default;}


/* ===== Audit Manager v1.2.4 · complete data-font scaling + tighter checklist columns ===== */
/* Older Checklist rules used fixed px sizes with higher specificity. Tie every important
   Checklist data element back to the shared font-size variables so the Display control is consistent. */
.am-shell .am-checklist .am-week-cell,
.am-shell .am-checklist td.am-date-simple,
.am-shell .am-checklist .am-days-cell,
.am-shell .am-checklist td.am-hotel-name,
.am-shell .am-checklist td.am-status-cell,
.am-shell .am-checklist td[data-cell-hotel],
.am-shell .am-checklist .am-info-code,
.am-shell .am-checklist .am-mode-pill,
.am-shell .am-checklist tbody td{
  font-size:var(--am-data-font)!important;
}
.am-shell .am-checklist .am-customer-main>strong,
.am-shell .am-checklist .am-company-line>span:first-child{
  font-size:var(--am-data-font-lg)!important;
  line-height:1.18!important;
}
.am-shell .am-checklist .am-customer-location,
.am-shell .am-checklist .am-company-sub,
.am-shell .am-checklist tbody td small{
  font-size:var(--am-data-font-sm)!important;
}
.am-shell .am-checklist .am-days-badge,
.am-shell .am-checklist .am-status-select{
  font-size:var(--am-data-font-xl)!important;
}
.am-shell .am-checklist .am-next-year,
.am-shell .am-checklist .am-inactive-switch{
  font-size:var(--am-data-font-sm)!important;
}

/* Start / End / Week can now be made materially narrower by the UI resizer. */
.am-shell .am-checklist .am-col-week,
.am-shell .am-checklist .am-week-cell{
  width:40px!important;
  min-width:34px!important;
  max-width:none!important;
  padding-left:3px!important;
  padding-right:3px!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.am-shell .am-checklist .am-col-date,
.am-shell .am-checklist td.am-date-simple{
  width:60px!important;
  min-width:38px!important;
  max-width:none!important;
  padding-left:3px!important;
  padding-right:3px!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  line-height:1.18!important;
}

/* Hotel may be narrow: wrap long hotel names instead of forcing the whole column wider. */
.am-shell .am-checklist th:nth-child(9),
.am-shell .am-checklist td.am-hotel-name,
.am-shell .am-checklist td[data-cell-hotel]{
  width:82px!important;
  min-width:42px!important;
  max-width:none!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  line-height:1.2!important;
}
.am-shell .am-checklist td.am-hotel-name>span,
.am-shell .am-checklist td[data-cell-hotel]>span{
  display:block!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}

/* Do not let generic legacy table minima fight user-resized Checklist columns. */
.am-shell .am-checklist td.hotel{min-width:42px!important;}
.am-shell .am-checklist col{min-width:0!important;}

/* ===== Audit Manager v1.2.5 · Invoice UI editor + Checklist period filter ===== */
/* Saved/manual column widths must win over the compact default Invoice widths. */
.am-shell .am-ui-table.am-ui-sized{
  table-layout:fixed!important;
  width:max-content!important;
  min-width:100%!important;
}
.am-shell .am-ui-table.am-ui-sized th,
.am-shell .am-ui-table.am-ui-sized td{
  min-width:0!important;
  max-width:none!important;
}
.am-shell .am-invoice-table.am-ui-sized th{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.am-shell .am-invoice-table.am-ui-sized td{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  overflow-wrap:anywhere!important;
}
/* Invoice data follows the same Display font-size control as the Checklist. */
.am-shell .am-invoice-table tbody td,
.am-shell .am-invoice-table .am-invoice-date-cell,
.am-shell .am-invoice-table .am-square-num,
.am-shell .am-invoice-table .am-money-compact,
.am-shell .am-invoice-table .am-profit-cell,
.am-shell .am-invoice-table .am-shared-invoice-cell{
  font-size:var(--am-data-font)!important;
}
.am-shell .am-invoice-table .am-customer-main>strong,
.am-shell .am-invoice-table .am-profit-cell strong,
.am-shell .am-invoice-table .am-invoice-date-cell strong{
  font-size:var(--am-data-font-lg)!important;
}
.am-shell .am-invoice-table .am-customer-location,
.am-shell .am-invoice-table td small{
  font-size:var(--am-data-font-sm)!important;
}
/* Five checklist filter fields now fit cleanly before the customer search. */
.am-checklist-toolbar{grid-template-columns:120px 150px 130px 150px minmax(220px,1fr) auto auto auto!important;}
@media(max-width:1400px){.am-checklist-toolbar{grid-template-columns:repeat(4,minmax(120px,1fr))!important}.am-checklist-toolbar .am-filter-search{grid-column:span 2!important;}}

/* ===== Audit Manager v1.2.6 · independent UI editor ===== */
/* Keep the display editor above every table/modal layer when opened. */
.am-shell .am-ui-popover{z-index:5000!important;}
/* Invoice headers need to be resize anchors just like Checklist headers. */
.am-ui-editing .am-invoice-table th{position:relative!important;}
/* When a user has custom Invoice widths, let colgroup own the geometry. */
.am-shell .am-invoice-table.am-ui-sized{table-layout:fixed!important;width:max-content!important;min-width:0!important;}
.am-shell .am-invoice-table.am-ui-sized col{min-width:0!important;}
.am-shell .am-invoice-table.am-ui-sized th,
.am-shell .am-invoice-table.am-ui-sized td{min-width:0!important;max-width:none!important;}
/* Long invoice text wraps instead of forcing a resized column wider. */
.am-shell .am-invoice-table.am-ui-sized th,
.am-shell .am-invoice-table.am-ui-sized td{white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;}

/* v1.2.7 — Invoice-only grouping, independent from audit combinations */
.am-invoice-share{margin:10px 0 14px;padding:12px;border:1px solid #dbe5ec;border-radius:10px;background:#f8fbfd}
.am-invoice-share-head h3{margin:0 0 3px;font-size:12px;color:#29465b}
.am-invoice-share-head p{margin:0 0 9px;font-size:9px;line-height:1.45;color:#72818c}
.am-invoice-share-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:190px;overflow:auto;padding-right:3px}
.am-invoice-share-option{display:flex;align-items:center;gap:8px;min-width:0;padding:7px 8px;border:1px solid #dfe7ec;border-radius:8px;background:#fff;cursor:pointer}
.am-invoice-share-option:hover{border-color:#a9c7dc;background:#f4f9fd}
.am-invoice-share-option.is-selected{border-color:#74a9ce;background:#eaf5fc}
.am-invoice-share-option input{width:auto!important;min-width:14px;margin:0}
.am-invoice-share-option span{display:flex;flex-direction:column;min-width:0;flex:1}
.am-invoice-share-option strong{font-size:10px;color:#2d4658;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.am-invoice-share-option small{font-size:8px;color:#7b8993;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.am-invoice-share-option em{font-size:7px;font-style:normal;font-weight:800;text-transform:uppercase;color:#4b7b9d}
.am-invoice-shared-label{font-size:7px!important;text-transform:uppercase;letter-spacing:.05em;color:#4c7898!important;font-weight:800}
@media(max-width:700px){.am-invoice-share-list{grid-template-columns:1fr}}


/* v1.3.0 — compact refinements + instant tab shell */
.am-tab-panel[hidden]{display:none!important}
.am-tab-panel{min-width:0}
.am-trip-main-grid label:first-child+label{gap:7px!important}
.am-trip-main-grid label:first-child+label>input{margin-top:6px!important}
.am-trip-register .am-trip-heading h2{font-size:calc(var(--am-data-font-lg) + 5px)!important;line-height:1.08!important}
.am-trip-register .am-trip-heading p{font-size:calc(var(--am-data-font-sm) + var(--am-data-font-sm))!important;line-height:1.25!important;margin-top:5px!important}
.am-trip-register .am-trip-number{font-size:calc(var(--am-data-font) + var(--am-data-font))!important;font-weight:850!important;color:#788b99!important}
.am-trip-register .am-trip-heading .am-status-light{width:25px!important;height:25px!important;box-shadow:0 0 0 6px rgba(201,208,214,.20)!important;flex:0 0 25px!important}
.am-trip-register .am-trip-heading .am-status-light.green{box-shadow:0 0 0 6px rgba(55,166,90,.16)!important}
.am-trip-register .am-trip-heading .am-status-light.yellow{box-shadow:0 0 0 6px rgba(228,179,63,.18)!important}
.am-trip-register .am-trip-head{grid-template-columns:50px minmax(0,1fr) auto!important;padding:16px 18px!important}
.am-invoice-share{margin:8px 0 12px!important;padding:0!important;border:0!important;background:transparent!important}
.am-invoice-share-dropdown{position:relative;border:1px solid #dbe5ec;border-radius:8px;background:#fff}
.am-invoice-share-dropdown>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:9px 11px;list-style:none;color:#29465b;font-size:10px;font-weight:850}
.am-invoice-share-dropdown>summary::-webkit-details-marker{display:none}
.am-invoice-share-dropdown>summary:after{content:'▾';font-size:10px;color:#6e8190}
.am-invoice-share-dropdown[open]>summary:after{content:'▴'}
.am-invoice-share-dropdown>summary small{font-size:8px;color:#7d8d98;font-weight:750;margin-left:auto}
.am-invoice-share-pop{position:absolute;z-index:40;left:0;right:0;top:calc(100% + 4px);padding:7px;background:#fff;border:1px solid #dbe5ec;border-radius:9px;box-shadow:0 12px 28px rgba(34,56,72,.16)}
.am-invoice-share-list{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;max-height:none!important;overflow:visible!important;padding:0!important}
.am-invoice-share-option{padding:6px 8px!important}
.am-invoice-share-option strong{font-size:9px!important}.am-invoice-share-option small{font-size:7.5px!important}
.am-stat-kpis small{line-height:1.15!important}

.am-panel-refreshing{opacity:.62;pointer-events:none;transition:opacity .12s ease}.am-tab-panel{transition:opacity .12s ease}

/* v1.3.1 — balanced trip titles + yearly rates */
.am-yearly-rates-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}.am-yearly-rates-grid>label{display:block;padding:10px 11px;border:1px solid #e0e7ec;border-radius:9px;background:#f9fbfc}.am-yearly-rates-grid>label>span{display:block;font-size:11px;font-weight:900;color:#36536a;margin-bottom:6px}.am-rate-input{display:flex;align-items:center;gap:7px}.am-rate-input input{min-width:0;width:82px!important}.am-rate-input b{font-size:10px;color:#71828f;white-space:nowrap}.am-yearly-rates-form .am-form-actions{margin-top:12px}

/* ===== Audit Manager v1.4.0 · standalone full-screen shell + branding ===== */
/* The Audit Manager behaves as its own application and deliberately covers the
   surrounding WordPress theme/header/footer. This makes the same page usable
   regardless of the active WordPress theme or its content-width restrictions. */
.am-private-shell,
.am-public-shell{
  position:fixed!important;
  inset:0!important;
  z-index:2147482000!important;
  width:100vw!important;
  max-width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  max-height:100dvh!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  background:var(--am-bg)!important;
}
.am-private-shell>.am-topbar,
.am-private-shell>.am-nav,
.am-public-shell>.am-topbar{flex:0 0 auto!important}
.am-private-shell>.am-main,
.am-public-shell>.am-main{
  flex:1 1 auto!important;
  min-height:0!important;
  width:100%!important;
  max-width:none!important;
  overflow:auto!important;
  margin:0!important;
}
/* Login also presents as an application rather than a themed page. */
.am-login{
  position:fixed!important;
  inset:0!important;
  z-index:2147482000!important;
  width:100vw!important;
  max-width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:var(--am-bg)!important;
}
/* Prevent theme containers from visually peeking through on modern browsers. */
html:has(.am-private-shell),body:has(.am-private-shell),
html:has(.am-public-shell),body:has(.am-public-shell),
html:has(.am-login),body:has(.am-login){overflow:hidden!important}

/* Brand lock-up using the supplied GE emblem. */
.am-brand-lockup{display:flex;align-items:center;gap:10px;min-width:0}
.am-brand-logo-box{display:grid;place-items:center;width:52px;height:42px;padding:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;flex:0 0 auto}
.am-brand-logo{display:block;width:auto;height:36px;max-width:100%;object-fit:contain}
.am-brand-copy{display:flex;align-items:baseline;min-width:0}
.am-login-logo{display:flex;justify-content:center;margin:-4px 0 13px}.am-login-logo img{height:72px;width:auto;max-width:100%}

/* On very wide displays the application and its tables use the available canvas.
   Custom laptop-era column widths remain minimums; extra desktop width is allowed
   to spread across the table instead of leaving a large empty area to the right. */
@media(min-width:1500px){
  .am-private-shell .am-main{padding-left:max(var(--am-main-pad),18px)!important;padding-right:max(var(--am-main-pad),18px)!important}
  .am-private-shell .am-table-wrap{width:100%!important;max-width:none!important}
  .am-private-shell .am-table{max-width:none!important}
  .am-private-shell .am-ui-table.am-ui-sized{min-width:100%!important}
}

/* Mobile top bar: keep the tools accessible without letting them dominate the screen. */
@media(max-width:700px){
  .am-private-shell .am-topbar{padding:8px 9px!important;gap:7px!important;min-height:48px}
  .am-brand-lockup{gap:6px}.am-brand-logo-box{width:39px;height:34px;padding:2px 4px;border-radius:7px}.am-brand-logo{height:29px}
  .am-brand-copy .am-brand{font-size:10px!important;letter-spacing:.055em!important}.am-brand-copy .am-version{font-size:8px!important;margin-left:6px!important}
  .am-private-shell .am-user{display:none!important}
  .am-private-shell .am-top-actions{gap:4px!important;margin-left:auto}
  .am-private-shell #am-ui-edit,
  .am-private-shell #am-history-toggle,
  .am-private-shell .am-undo-button{
    width:29px!important;height:29px!important;min-width:29px!important;max-width:29px!important;padding:0!important;border-radius:8px!important;font-size:0!important;line-height:1!important;display:grid!important;place-items:center!important;
  }
  .am-private-shell #am-ui-edit:before{content:'⚙';font-size:14px!important;line-height:1}
  .am-private-shell #am-history-toggle:before{content:'◴';font-size:15px!important;line-height:1}
  .am-private-shell .am-undo-button:before{content:'↶';font-size:17px!important;line-height:1}
  .am-private-shell .am-history-pop{position:fixed!important;right:8px!important;left:8px!important;top:52px!important;width:auto!important;max-height:55vh!important;overflow:auto!important}
  .am-private-shell .am-nav{padding:0 3px!important}.am-private-shell .am-nav a{padding:9px 8px!important;font-size:10px!important}
}

/* v1.4.1 demo workspace */
.am-demo-badge{display:inline-flex;align-items:center;justify-content:center;margin-left:8px;padding:2px 7px;border-radius:999px;background:#fff4cf;color:#8a6400;border:1px solid #ead27b;font-size:10px;font-weight:800;letter-spacing:.08em;vertical-align:middle}
.am-demo-settings .am-demo-user-list{margin:14px 0;padding-top:12px;border-top:1px solid #e7edf5;display:grid;gap:7px}
.am-demo-user-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 9px;border:1px solid #e6ebf2;border-radius:9px;background:#fafcff}
.am-demo-user-row span{font-size:12px;font-weight:650;color:#26384d}

.am-trip-card.am-trip-focus{outline:3px solid #7fa8d8!important; outline-offset:2px; box-shadow:0 0 0 4px rgba(127,168,216,.18),0 6px 18px rgba(31,51,68,.12)!important;}

/* v1.4.3 — combined trip chain */
.am-trip-combine-dropdown{margin-top:14px;border:1px solid #dfe6ee;border-radius:10px;background:#fff;position:relative}
.am-trip-combine-dropdown>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;font-weight:700;color:#18324a}
.am-trip-combine-dropdown>summary::-webkit-details-marker{display:none}
.am-trip-combine-dropdown>summary small{font-weight:600;color:#748394}
.am-trip-combine-pop{padding:6px 8px 10px;display:grid;gap:5px;max-height:230px;overflow:auto;border-top:1px solid #edf1f5}
.am-trip-combine-option{display:flex;gap:9px;align-items:flex-start;padding:8px;border-radius:8px;cursor:pointer;border:1px solid transparent}
.am-trip-combine-option:hover,.am-trip-combine-option.is-selected{background:#f1f7fd;border-color:#c9dced}
.am-trip-combine-option input{margin-top:3px}
.am-trip-combine-option span{display:flex;flex-direction:column;min-width:0}.am-trip-combine-option strong{font-size:13px}.am-trip-combine-option small{font-size:11px;color:#748394;margin-top:2px}
.am-trip-combine-empty{padding:9px;color:#8a96a2;font-size:12px}
.am-direction-pill.inter{background:#ede8fb;color:#6147a6}
.am-direction-section.inter{border-color:#ded5f3;background:#fcfbff}
.am-trip-route-chain{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.am-trip-chain-stop h2{margin:0!important;font-size:20px!important;line-height:1.1}.am-trip-chain-stop p{margin:3px 0 0!important;font-size:12px!important;color:#718095!important}
.am-trip-chain-arrow{font-size:24px;font-weight:800;color:#8292a4;line-height:1}
.am-trip-chain-dates{display:block;margin-top:6px;color:#607286;font-size:12px;font-weight:700}
.am-trip-chain-wrap{min-width:0}
@media(max-width:700px){.am-trip-route-chain{gap:6px}.am-trip-chain-stop h2{font-size:16px!important}.am-trip-chain-arrow{font-size:18px}.am-trip-combine-dropdown{margin-top:10px}}

/* v1.6.0 clean-baseline additions: Checklist invoice status */
.am-checklist .am-invoice-head,.am-checklist .am-checklist-invoice-cell{width:72px;min-width:64px;max-width:88px;text-align:center!important;vertical-align:middle!important}
.am-invoice-status-pill{display:inline-flex;align-items:center;justify-content:center;min-width:42px;max-width:76px;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:800;line-height:1;white-space:nowrap;border:1px solid transparent}
.am-invoice-status-pill.blank{color:#7a8791;background:#f1f3f5;border-color:#e0e5e9}
.am-invoice-status-pill.issued{color:#1f5f8d;background:#e6f2fb;border-color:#c7e0f2}
.am-invoice-status-pill.paid{color:#28703b;background:#e5f4e7;border-color:#c8e6ce}
.am-invoice-status-pill.na{color:#7b8389;background:#eceeef;border-color:#dfe3e5}
.am-login-switch{display:inline-flex;text-decoration:none;margin:8px 0 4px}.am-login-help{font-size:12px;color:#6c7a86}


/* ===== Audit Manager v1.6.1 · calendar date emphasis + modal close alignment ===== */
.am-days .am-date{
  left:50%!important;right:auto!important;top:7px!important;transform:translateX(-50%)!important;
  min-width:30px!important;min-height:25px!important;padding:4px 7px!important;box-sizing:border-box!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  border-radius:9px!important;background:rgba(247,249,251,.94)!important;border:1px solid rgba(205,216,225,.82)!important;
  box-shadow:0 1px 3px rgba(32,52,68,.08)!important;color:#30475a!important;
  font-size:12px!important;font-weight:950!important;line-height:1!important;text-align:center!important;
}
.am-days .am-date span{display:block!important;margin:2px 0 0!important;font-size:5.5px!important;font-weight:900!important;letter-spacing:.08em!important;line-height:1!important;}
.am-days .am-day.has-audit:not(.past) .am-date{background:rgba(255,255,255,.94)!important;border-color:rgba(255,255,255,.72)!important;color:#2f6fae!important;}
.am-days .am-day.has-unconfirmed:not(.past) .am-date{background:rgba(255,255,255,.82)!important;color:#465768!important;}
.am-days .am-day.has-travel:not(.past) .am-date{background:rgba(255,255,255,.86)!important;color:#285f95!important;}
.am-days .am-day.has-custom:not(.past) .am-date{background:rgba(255,255,255,.86)!important;color:#795360!important;}
.am-days .am-day.past .am-date{background:rgba(244,245,246,.72)!important;border-color:rgba(190,195,200,.72)!important;color:#686e74!important;box-shadow:none!important;}
.am-days .am-day.today .am-date{background:#f0c45b!important;border-color:#ddb348!important;color:#37414a!important;box-shadow:0 1px 4px rgba(104,79,20,.16)!important;}

.am-modal-close{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  padding:0!important;text-align:center!important;font-size:0!important;line-height:1!important;
  flex:0 0 31px!important;
}
.am-modal-close::before{
  content:"×";display:block;font-family:Arial,Helvetica,sans-serif;font-size:20px;font-weight:400;line-height:1;
  width:20px;height:20px;text-align:center;transform:translateY(-1px);
}
\n/* v1.6.2 visual coherence + calendar refinements */
.am-shell{border-color:var(--am-line);box-shadow:0 14px 38px rgba(15,45,70,.08)}
.am-panel,.am-table-wrap,.am-month-card{border-color:var(--am-line)}
.am-table th,.am-group-head th{background:var(--am-navy)}
.am-secondary{background:#F1F3F4;color:var(--am-navy)!important;border-color:#D7DDE1}
.am-month-title{color:var(--am-navy);background:#F5F6F7}
.am-cal-head{color:#66727C;background:#F3F5F6}
.am-day-number{left:8px;top:6px;font-size:15px;line-height:1;font-weight:850;color:#111!important;background:none!important;border:0!important;padding:0!important;border-radius:0!important}
.am-day.past .am-day-number,.am-day.is-past .am-day-number,.am-day.has-audit-confirmed:not(.past):not(.is-past) .am-day-number{color:#111!important}
.am-day.past,.am-day.is-past{background:#D4D8DC!important;color:#555D64!important}
.am-day:not(.past):not(.is-past):not(.has-audit-confirmed):not(.has-audit-unconfirmed):not(.has-travel):not(.has-protected):nth-child(7n),
.am-day:not(.past):not(.is-past):not(.has-audit-confirmed):not(.has-audit-unconfirmed):not(.has-travel):not(.has-protected):nth-child(7n-1){background:#EEF0F2!important}
.am-day.today{outline:3px solid var(--am-brand-gold);outline-offset:-3px}
.am-day .am-events{padding:25px 5px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.am-day .am-event{position:relative!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important;flex:0 0 auto!important;min-height:0!important}
.am-day .am-event.flight{margin-top:2px!important}
.am-day .am-event.flight .am-flight-mark{display:flex;align-items:center;justify-content:center;gap:5px}
.am-day .am-event.flight .am-flight-icon{font-size:17px;line-height:1}
.am-day .am-event.flight .am-flight-time{font-size:10px;line-height:1;font-weight:900}
.am-day.has-audit-confirmed{background:#2F6FAE!important}
.am-day.has-audit-confirmed .am-day-number{color:#111!important;text-shadow:0 1px rgba(255,255,255,.35)}
.am-brand-logo{background:transparent!important}

/* ===== Audit Manager v1.6.4 · conservative calendar correction ===== */
/* Keep the v1.6.2 calendar palette/layout. Only simplify and enlarge the date number. */
.am-days .am-date{
  left:8px!important;right:auto!important;top:6px!important;transform:none!important;
  min-width:0!important;min-height:0!important;width:auto!important;height:auto!important;
  padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  color:#000!important;font-size:18px!important;font-weight:900!important;line-height:1!important;text-align:left!important;
}
.am-days .am-day.has-audit .am-date,.am-days .am-day.has-unconfirmed .am-date,.am-days .am-day.has-travel .am-date,.am-days .am-day.has-custom .am-date,.am-days .am-day.past .am-date,.am-days .am-day.today .am-date{color:#000!important;background:transparent!important;border:0!important;box-shadow:none!important}
.am-days .am-date span{color:#000!important;background:transparent!important;font-size:6px!important;margin-top:3px!important}
/* On a date shared by an audit and a flight, stack flight below customer/country and center it. */
.am-days .am-day.has-audit .am-events,.am-days .am-day.has-unconfirmed .am-events{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;width:100%!important}
.am-days .am-day.has-audit .am-event,.am-days .am-day.has-unconfirmed .am-event{position:relative!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important;width:92%!important;text-align:center!important}
.am-days .am-day.has-audit .am-event.flight,.am-days .am-day.has-unconfirmed .am-event.flight{display:flex!important;position:relative!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important;margin-top:3px!important;color:inherit!important}
.am-days .am-day.has-audit .am-event.flight .am-flight-mark,.am-days .am-day.has-unconfirmed .am-event.flight .am-flight-mark{min-height:0!important;width:auto!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:5px!important}
.am-days .am-day.has-audit .am-event.flight .am-flight-icon,.am-days .am-day.has-unconfirmed .am-event.flight .am-flight-icon{font-size:17px!important}
.am-days .am-day.has-audit .am-event.flight .am-flight-time,.am-days .am-day.has-unconfirmed .am-event.flight .am-flight-time{position:static!important;left:auto!important;top:auto!important;bottom:auto!important;transform:none!important;margin:0!important;font-size:10px!important;color:inherit!important}
/* Combined audit frame: thin brand-gold outline, otherwise preserve v1.6.2 table styling. */
.am-enterprise-table tr.is-combined td:first-child{box-shadow:inset 1px 0 0 #D4AF6C!important}
.am-enterprise-table tr.is-combined td:last-child{box-shadow:inset -1px 0 0 #D4AF6C!important}
.am-enterprise-table tr.is-combined.combo-first td{border-top:1px solid #D4AF6C!important}
.am-enterprise-table tr.is-combined.combo-last td{border-bottom:1px solid #D4AF6C!important}


/* ===== Audit Manager v1.6.5 · calendar date centering ===== */
/* Day number is always plain black text: centered, no badge/highlight in any state. */
.am-days .am-day .am-date,
.am-days .am-day.has-audit .am-date,
.am-days .am-day.has-unconfirmed .am-date,
.am-days .am-day.has-travel .am-date,
.am-days .am-day.has-custom .am-date,
.am-days .am-day.past .am-date,
.am-days .am-day.today .am-date{
  position:absolute!important;
  left:0!important;right:0!important;top:6px!important;transform:none!important;
  width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;
  margin:0!important;padding:0!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;
  color:#000!important;background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;text-shadow:none!important;
  font-size:18px!important;font-weight:900!important;line-height:1!important;
}
.am-days .am-day .am-date span,
.am-days .am-day.has-audit .am-date span,
.am-days .am-day.has-unconfirmed .am-date span,
.am-days .am-day.has-travel .am-date span,
.am-days .am-day.has-custom .am-date span,
.am-days .am-day.past .am-date span,
.am-days .am-day.today .am-date span{
  color:#000!important;background:transparent!important;border:0!important;box-shadow:none!important;text-shadow:none!important;
}


/* ===== Audit Manager v1.6.6 · calendar cell cleanup on v1.6.5 baseline ===== */
/* Flight-only days: entire cell uses the travel background. */
.am-days .am-day.has-travel:not(.has-audit):not(.has-unconfirmed):not(.past){
  background:#dceeff!important;
  color:#285f95!important;
}
.am-days .am-day.has-travel:not(.has-audit):not(.has-unconfirmed):not(.past)::before{
  display:none!important;
  content:none!important;
}
.am-days .am-day.has-travel:not(.has-audit):not(.has-unconfirmed):not(.past) .am-event.flight,
.am-days .am-day.has-travel:not(.has-audit):not(.has-unconfirmed):not(.past) .am-event.travel{
  background:transparent!important;
  border:0!important;
  color:#285f95!important;
}

/* Confirmed audit days: one continuous dark-blue cell; remove any inner strip/band. */
.am-days .am-day.has-audit:not(.past){
  background:#2f6fae!important;
  color:#fff!important;
}
.am-days .am-day.has-audit:not(.past)::before{
  display:none!important;
  content:none!important;
}
.am-days .am-day.has-audit:not(.past) .am-event.audit{
  background:transparent!important;
  border:0!important;
  color:#fff!important;
  width:100%!important;
  align-items:center!important;
  text-align:center!important;
  margin-top:25px!important;
  padding:4px 5px!important;
}
.am-days .am-day.has-audit:not(.past) .am-event.audit strong,
.am-days .am-day.has-audit:not(.past) .am-event.audit small{
  color:#fff!important;
  text-align:center!important;
  width:100%!important;
}

/* Same-day audit + return flight: place flight mark below customer/country, vertically stacked. */
.am-days .am-day.has-audit:not(.past) .am-event.flight.landing{
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  margin:2px 0 0!important;
  padding:2px 0!important;
  align-items:center!important;
  justify-content:center!important;
  background:transparent!important;
  border:0!important;
  color:#fff!important;
}
.am-days .am-day.has-audit:not(.past) .am-event.flight.landing .am-flight-mark{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:1px!important;
  width:100%!important;
  min-height:auto!important;
}
.am-days .am-day.has-audit:not(.past) .am-event.flight.landing .am-flight-icon{
  font-size:18px!important;
  line-height:1!important;
  color:#fff!important;
}
.am-days .am-day.has-audit:not(.past) .am-event.flight.landing .am-flight-time{
  position:static!important;
  transform:none!important;
  margin:1px 0 0!important;
  font-size:9px!important;
  line-height:1!important;
  color:#fff!important;
}

/* Keep v1.6.5 day-number behavior: centered at the top, plain black, no badge. */
.am-days .am-day .am-date,
.am-days .am-day.has-audit .am-date,
.am-days .am-day.has-unconfirmed .am-date,
.am-days .am-day.has-travel .am-date,
.am-days .am-day.has-custom .am-date,
.am-days .am-day.past .am-date,
.am-days .am-day.today .am-date{
  position:absolute!important;
  left:0!important;
  right:0!important;
  top:6px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  color:#000!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  text-shadow:none!important;
  font-size:18px!important;
  font-weight:900!important;
  line-height:1!important;
}
.am-days .am-day .am-date span,
.am-days .am-day.has-audit .am-date span,
.am-days .am-day.has-unconfirmed .am-date span,
.am-days .am-day.has-travel .am-date span,
.am-days .am-day.has-custom .am-date span,
.am-days .am-day.past .am-date span,
.am-days .am-day.today .am-date span{
  color:#000!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  text-shadow:none!important;
}


/* ===== Audit Manager v1.6.7 · robust calendar event-state styling ===== */
/* Use the rendered event contents as the source of truth. This avoids older
   state-class rules leaving a pale strip behind the date. */
@supports selector(.am-day:has(.am-event.audit)) {
  /* Confirmed audit: every visible part of the day, including the date area,
     uses one continuous dark-blue background. */
  .am-days .am-day:has(.am-event.audit):not(.past) {
    background:#2f6fae!important;
    color:#fff!important;
  }
  .am-days .am-day:has(.am-event.audit):not(.past)::before,
  .am-days .am-day:has(.am-event.audit):not(.past)::after {
    display:none!important;
    content:none!important;
  }
  .am-days .am-day:has(.am-event.audit):not(.past) > .am-date {
    background:#2f6fae!important;
    color:#fff!important;
    border:0!important;
    box-shadow:none!important;
    text-shadow:none!important;
  }
  .am-days .am-day:has(.am-event.audit):not(.past) > .am-date span {
    background:transparent!important;
    color:#fff!important;
  }
  .am-days .am-day:has(.am-event.audit):not(.past) > .am-event.audit {
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    color:#fff!important;
    width:100%!important;
    margin:29px 0 0!important;
    padding:4px 6px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
  }
  .am-days .am-day:has(.am-event.audit):not(.past) > .am-event.audit strong,
  .am-days .am-day:has(.am-event.audit):not(.past) > .am-event.audit small {
    color:#fff!important;
    width:100%!important;
    text-align:center!important;
  }

  /* Flight-only days: one continuous light-blue cell, including date area. */
  .am-days .am-day:has(.am-event.flight):not(:has(.am-event.audit)):not(.past) {
    background:#dceeff!important;
    color:#285f95!important;
  }
  .am-days .am-day:has(.am-event.flight):not(:has(.am-event.audit)):not(.past)::before,
  .am-days .am-day:has(.am-event.flight):not(:has(.am-event.audit)):not(.past)::after {
    display:none!important;
    content:none!important;
  }
  .am-days .am-day:has(.am-event.flight):not(:has(.am-event.audit)):not(.past) > .am-date {
    background:#dceeff!important;
    color:#285f95!important;
    border:0!important;
    box-shadow:none!important;
  }

  /* Audit + return flight on the same day: customer/country first, then
     plane and arrival time directly underneath, never at the right edge. */
  .am-days .am-day:has(.am-event.audit):not(.past) > .am-event.flight.landing {
    position:relative!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    inset:auto!important;
    transform:none!important;
    float:none!important;
    clear:both!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    margin:2px 0 0!important;
    padding:1px 0 3px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    color:#fff!important;
  }
  .am-days .am-day:has(.am-event.audit):not(.past) > .am-event.flight.landing .am-flight-mark {
    position:static!important;
    width:100%!important;
    min-height:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:1px!important;
    margin:0!important;
    padding:0!important;
  }
  .am-days .am-day:has(.am-event.audit):not(.past) > .am-event.flight.landing .am-flight-icon {
    position:static!important;
    font-size:18px!important;
    line-height:1!important;
    color:#fff!important;
    margin:0!important;
  }
  .am-days .am-day:has(.am-event.audit):not(.past) > .am-event.flight.landing .am-flight-time {
    position:static!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    transform:none!important;
    margin:1px 0 0!important;
    font-size:9px!important;
    line-height:1!important;
    color:#fff!important;
  }
}

/* Keep every day number horizontally centered regardless of state. */
.am-days .am-day > .am-date {
  left:0!important;
  right:0!important;
  top:6px!important;
  width:100%!important;
  transform:none!important;
  text-align:center!important;
  align-items:center!important;
  justify-content:center!important;
}

/* ===== Audit Manager v1.6.8 · deterministic calendar cell layout ===== */
/* The date area must use exactly the same fill as the cell — no pale strip. */
.am-days .am-day.has-travel:not(.has-audit):not(.has-unconfirmed):not(.past) > .am-date{
  background:#dceeff!important;
  border:0!important;
  box-shadow:none!important;
}
.am-days .am-day.has-audit:not(.past) > .am-date{
  background:#2f6fae!important;
  border:0!important;
  box-shadow:none!important;
}
.am-days .am-day.has-unconfirmed:not(.past) > .am-date{
  background:inherit!important;
  border:0!important;
  box-shadow:none!important;
}
/* Date numbers are always black, irrespective of day state. */
.am-days .am-day > .am-date,
.am-days .am-day > .am-date span,
.am-days .am-day.has-audit:not(.past) > .am-date,
.am-days .am-day.has-audit:not(.past) > .am-date span,
.am-days .am-day.has-travel:not(.past) > .am-date,
.am-days .am-day.has-travel:not(.past) > .am-date span,
.am-days .am-day.past > .am-date,
.am-days .am-day.past > .am-date span{
  color:#000!important;
  text-shadow:none!important;
}
/* Keep every date centered. */
.am-days .am-day > .am-date{
  left:0!important;right:0!important;top:6px!important;width:100%!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;
}
/* More breathing room between flight time and plane on flight-only days. */
.am-days .am-day.has-travel:not(.has-audit):not(.has-unconfirmed):not(.past) .am-event.flight .am-flight-mark{
  min-height:58px!important;
}
.am-days .am-day.has-travel:not(.has-audit):not(.has-unconfirmed):not(.past) .am-event.flight.morning .am-flight-time{
  bottom:38px!important;
}
.am-days .am-day.has-travel:not(.has-audit):not(.has-unconfirmed):not(.past) .am-event.flight.late .am-flight-time{
  top:38px!important;
}
/* Same-day audit + final return: reserve a deterministic area for the landing
   so it remains visible in 2-, 4- and 6-month views. */
.am-days .am-day.has-audit.has-landing:not(.past){
  position:relative!important;
}
.am-days .am-day.has-audit.has-landing:not(.past) .am-event.audit{
  position:absolute!important;
  left:4%!important;right:4%!important;top:42%!important;
  width:92%!important;margin:0!important;padding:2px 3px!important;
  transform:translateY(-50%)!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;background:transparent!important;border:0!important;color:#fff!important;
}
.am-days .am-day.has-audit.has-landing:not(.past) .am-event.flight.landing{
  display:flex!important;
  position:absolute!important;
  left:0!important;right:0!important;top:auto!important;bottom:7px!important;
  width:100%!important;height:auto!important;margin:0!important;padding:0!important;
  transform:none!important;background:transparent!important;border:0!important;color:#fff!important;
  align-items:center!important;justify-content:center!important;text-align:center!important;
}
.am-days .am-day.has-audit.has-landing:not(.past) .am-event.flight.landing .am-flight-mark{
  position:static!important;display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;gap:4px!important;
  width:auto!important;min-height:0!important;margin:0!important;padding:0!important;
}
.am-days .am-day.has-audit.has-landing:not(.past) .am-event.flight.landing .am-flight-icon{
  position:static!important;font-size:17px!important;line-height:1!important;color:#fff!important;margin:0!important;
}
.am-days .am-day.has-audit.has-landing:not(.past) .am-event.flight.landing .am-flight-time{
  position:static!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  transform:none!important;margin:0!important;font-size:9px!important;line-height:1!important;color:#fff!important;
}

/* ===== Audit Manager v1.6.9 · calendar stability ===== */
/* Combined-trip bridge days are true audit-blocked days, not a top stripe. */
.am-days .am-day.has-bridge:not(.past){
  background:#2f6fae!important;
  color:#fff!important;
}
.am-days .am-day.has-bridge:not(.past)::before,
.am-days .am-day.has-bridge:not(.past)::after{
  display:none!important;
  content:none!important;
}
.am-days .am-day.has-bridge:not(.past) > .am-date{
  background:#2f6fae!important;
  color:#000!important;
  border:0!important;
  box-shadow:none!important;
}

/* Same-day landing is rendered inside the audit event itself so it cannot
   disappear in denser 4/6-month layouts. */
.am-days .am-day.has-audit:not(.past) .am-event.audit .am-inline-landing{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  margin-top:6px!important;
  color:#fff!important;
  width:100%!important;
}
.am-days .am-day.has-audit:not(.past) .am-event.audit .am-inline-landing .am-flight-icon{
  font-size:17px!important;
  line-height:1!important;
  color:#fff!important;
}
.am-days .am-day.has-audit:not(.past) .am-event.audit .am-inline-landing .am-flight-time{
  position:static!important;
  transform:none!important;
  font-size:9px!important;
  line-height:1!important;
  color:#fff!important;
  margin:0!important;
}
/* Stop the older absolute landing reservation from competing with the inline one. */
.am-days .am-day.has-audit.has-landing:not(.past) .am-event.audit{
  position:relative!important;
  inset:auto!important;
  left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  transform:none!important;
  margin-top:25px!important;
}

/* Flight-only cells: stable vertical stack with a larger icon/time gap. */
.am-days .am-day.has-travel:not(.has-audit):not(.has-unconfirmed):not(.past) .am-event.flight .am-flight-mark{
  position:static!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  min-height:62px!important;
  width:100%!important;
}
.am-days .am-day.has-travel:not(.has-audit):not(.has-unconfirmed):not(.past) .am-event.flight .am-flight-icon,
.am-days .am-day.has-travel:not(.has-audit):not(.has-unconfirmed):not(.past) .am-event.flight .am-flight-time{
  position:static!important;
  left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  transform:none!important;
  margin:0!important;
}
.am-days .am-day.has-travel:not(.has-audit):not(.has-unconfirmed):not(.past) .am-event.flight.morning .am-flight-time{order:1!important;}
.am-days .am-day.has-travel:not(.has-audit):not(.has-unconfirmed):not(.past) .am-event.flight.morning .am-flight-icon{order:2!important;}
.am-days .am-day.has-travel:not(.has-audit):not(.has-unconfirmed):not(.past) .am-event.flight.late .am-flight-icon{order:1!important;}
.am-days .am-day.has-travel:not(.has-audit):not(.has-unconfirmed):not(.past) .am-event.flight.late .am-flight-time{order:2!important;}

/* All date numbers stay black in every state. */
.am-days .am-day > .am-date,
.am-days .am-day > .am-date span{color:#000!important;text-shadow:none!important;}

/* ===== Audit Manager v1.6.10 · calendar itinerary consistency ===== */
/* Extra spacing between the flight time and the plane glyph. */
.am-days .am-day.has-travel:not(.has-audit):not(.has-unconfirmed):not(.past) .am-event.flight .am-flight-mark{
  gap:15px!important;
  min-height:72px!important;
}
/* Bridge cells are forced solid by PHP; keep their contents/pseudo-elements inert. */
.am-days .am-day.has-bridge:not(.past),
.am-days .am-day.has-bridge:not(.past) > .am-date{
  background:#2f6fae!important;
}
.am-days .am-day.has-bridge:not(.past)::before,
.am-days .am-day.has-bridge:not(.past)::after{display:none!important;content:none!important;}

/* ===== Audit Manager v1.7.0 · Calendar v2 ===== */
/* Isolated calendar renderer. Legacy .am-day/.am-event rules do not apply. */
.am-calendar-v2{align-items:start}
.amc-month{min-width:0}
.amc-month>h2{margin:0 0 8px;text-align:center;font-size:14px;font-weight:850;color:#253b4d}
.amc-calendar{overflow:hidden;border:1px solid #d8e1e8;border-radius:12px;background:#fff}
.amc-weekhead,.amc-week-row{display:grid;grid-template-columns:38px repeat(7,minmax(0,1fr))}
.amc-weekhead>div{display:grid;place-items:center;min-height:30px;padding:5px 3px;background:#eef2f5;border-right:1px solid #e2e8ed;color:#465c6d;font-size:9px;font-weight:850;text-transform:uppercase}
.amc-weekhead>div:last-child{border-right:0}
.amc-week-title{font-size:8px!important;color:#80909b!important}
.amc-week-row{border-top:1px solid #e0e6ea}
.amc-week-number{display:grid;place-items:center;background:#f5f7f8;border-right:1px solid #dce4e9;color:#7d8b95;font-size:9px;font-weight:850;writing-mode:horizontal-tb}
.amc-day{position:relative;min-height:112px;overflow:hidden;background:#fff;border-right:1px solid #e4e9ed;color:#1b252d}
.amc-day:last-child{border-right:0}
.amc-outside{background:#f7f8f9}
.amc-past{background:#d7dadd!important;color:#51575e!important}
.amc-audit{background:#3478b7!important;color:#fff!important}
.amc-unconfirmed{background:#d9dcdf!important;color:#35434d!important}
.amc-travel{background:#d8ebfb!important;color:#245e91!important}
.amc-custom{background:#fff4cf!important}
.amc-bridge{background:#3478b7!important}
.amc-today{box-shadow:inset 0 0 0 2px #d6ad31!important}
.amc-date{height:28px;display:flex;align-items:center;justify-content:center;gap:5px;padding:3px 5px;background:transparent!important;color:#000!important;font-size:16px;font-weight:900;line-height:1;position:relative;z-index:2}
.amc-date span{font-size:6px;letter-spacing:.05em;color:#000;background:#f5dfa1;border-radius:6px;padding:2px 4px}
.amc-body{position:absolute;left:5px;right:5px;top:29px;bottom:5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;overflow:hidden;text-align:center}
.amc-audit-text{max-width:100%;color:inherit;line-height:1.12}
.amc-audit-text strong{display:block;font-size:10px;font-weight:850;white-space:normal;overflow-wrap:anywhere}
.amc-audit-text small{display:block;margin-top:3px;font-size:8px;font-weight:650;opacity:.9;color:inherit}
.amc-flight{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;line-height:1;color:#245e91!important;min-height:54px}
.amc-audit .amc-flight{color:#fff!important;margin-top:3px;gap:9px;min-height:auto}
.amc-plane{display:block;font-family:Arial,"Segoe UI Symbol",sans-serif!important;font-variant-emoji:text;font-size:29px;font-weight:400;line-height:1;color:inherit!important;text-shadow:none!important;filter:none!important}
.amc-flight-time{display:block;font-size:10px;font-weight:900;line-height:1;color:inherit!important}
.amc-generic .amc-plane{font-size:30px}
.amc-custom-text{max-width:95%;font-size:8px;font-weight:800;color:#805b0a}
.amc-past .amc-body,.amc-past .amc-date{color:#51575e!important}
.amc-past .amc-plane,.amc-past .amc-flight-time{color:#51575e!important}
.amc-bridge .amc-body{display:none}
.am-calendar-v2.months-4 .amc-day{min-height:96px}
.am-calendar-v2.months-4 .amc-date{height:24px;font-size:14px}
.am-calendar-v2.months-4 .amc-body{top:25px}
.am-calendar-v2.months-4 .amc-audit-text strong{font-size:8px}
.am-calendar-v2.months-4 .amc-audit-text small{font-size:7px}
.am-calendar-v2.months-4 .amc-plane{font-size:24px}
.am-calendar-v2.months-4 .amc-flight-time{font-size:8px}
.am-calendar-v2.months-4 .amc-flight{gap:10px}
.am-calendar-v2.months-6 .amc-day{min-height:82px}
.am-calendar-v2.months-6 .amc-date{height:22px;font-size:12px}
.am-calendar-v2.months-6 .amc-body{top:23px;left:3px;right:3px}
.am-calendar-v2.months-6 .amc-audit-text strong{font-size:7px}
.am-calendar-v2.months-6 .amc-audit-text small{font-size:6px}
.am-calendar-v2.months-6 .amc-plane{font-size:21px}
.am-calendar-v2.months-6 .amc-flight-time{font-size:7px}
.am-calendar-v2.months-6 .amc-flight{gap:8px;min-height:42px}
@media(max-width:780px){
  .amc-weekhead,.amc-week-row{grid-template-columns:28px repeat(7,minmax(72px,1fr))}
  .amc-calendar{overflow-x:auto}
  .amc-day{min-height:86px}
  .amc-date{font-size:13px;height:24px}
  .amc-body{top:25px}
  .amc-week-number{font-size:8px}
}

/* ===== Audit Manager v1.7.1 · protected-date editing + calendar contrast ===== */
.amc-day.amc-weekend:not(.amc-audit):not(.amc-unconfirmed):not(.amc-travel):not(.amc-custom):not(.amc-past){
  background:#f3f5f6!important;
}
.amc-day.amc-past{
  background:#b9bec3!important;
  color:#3f474d!important;
}
.amc-day.amc-past .amc-date,
.amc-day.amc-past .amc-body,
.amc-day.amc-past .amc-audit-text,
.amc-day.amc-past .amc-custom-text,
.amc-day.amc-past .amc-plane,
.amc-day.amc-past .amc-flight-time{
  color:#3f474d!important;
}
.am-protected-form-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;grid-column:1/-1}
.am-event-list-row{display:grid!important;grid-template-columns:auto minmax(120px,1fr) minmax(150px,1.2fr) auto!important;align-items:center!important;gap:8px!important}
.am-event-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}
.am-event-row-actions form{margin:0!important}
.am-event-edit{padding:5px 9px!important;font-size:11px!important}
@media(max-width:780px){
  .am-event-list-row{grid-template-columns:auto 1fr!important}
  .am-event-list-row small{grid-column:2}
  .am-event-row-actions{grid-column:2;justify-content:flex-start}
}


/* ===== Audit Manager v1.7.2 · keep travel information visible on past days ===== */
.am-calendar-v2 .amc-day.amc-past .amc-flight{display:flex!important;visibility:visible!important;opacity:1!important;}
.am-calendar-v2 .amc-day.amc-past .amc-plane,
.am-calendar-v2 .amc-day.amc-past .amc-flight-time{display:block!important;visibility:visible!important;color:#3f474d!important;opacity:1!important;}

/* ===== Audit Manager v1.7.3 · invoice totals + no-invoice state ===== */
.am-invoice-row.invoice-inactive>td{
  background:#eef0f2!important;
  color:#7b858d!important;
}
.am-invoice-row.invoice-inactive .am-customer-main strong,
.am-invoice-row.invoice-inactive .am-customer-location,
.am-invoice-row.invoice-inactive .am-profit-cell strong{
  color:#7b858d!important;
}
.am-invoice-inactive-label{
  display:inline-block;
  margin-top:3px;
  padding:1px 6px;
  border-radius:999px;
  background:#dfe3e6;
  color:#69737b;
  font-size:7px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.am-invoice-common-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.am-invoice-common-head h3{margin:0!important;}
.am-invoice-inactive-toggle{
  display:inline-flex!important;
  align-items:center;
  gap:6px;
  width:auto!important;
  margin:0!important;
  padding:3px 7px!important;
  border:1px solid #d6dee4;
  border-radius:999px;
  background:#f7f9fa;
  color:#667681;
  font-size:8px!important;
  font-weight:800!important;
  line-height:1!important;
  cursor:pointer;
}
.am-invoice-inactive-toggle input{
  width:11px!important;
  height:11px!important;
  margin:0!important;
  accent-color:#6f7e88;
}
.am-invoice-inactive-toggle:has(input:checked){
  background:#e4e7e9;
  border-color:#aeb8bf;
  color:#46545d;
}
.am-invoice-totals-wrap{
  margin-top:14px;
  display:grid;
  gap:10px;
}
.am-invoice-year-total{
  border:1px solid #dce4ea;
  border-radius:12px;
  background:#f8fafb;
  padding:10px 12px 12px;
  box-shadow:0 2px 8px rgba(30,53,70,.04);
}
.am-invoice-total-year{
  margin-bottom:8px;
  color:#6d7e89;
  font-size:9px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.am-invoice-total-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(90px,1fr));
  gap:8px;
}
.am-invoice-total-grid>div{
  min-width:0;
  border-right:1px solid #e2e8ec;
  padding:2px 10px;
  text-align:center;
}
.am-invoice-total-grid>div:last-child{border-right:0;}
.am-invoice-total-grid small{
  display:block;
  margin-bottom:3px;
  color:#7b8993;
  font-size:8px;
  font-weight:750;
  line-height:1.15;
}
.am-invoice-total-grid strong{
  display:block;
  color:#223f54;
  font-size:14px;
  line-height:1.1;
}
.am-invoice-total-grid .total-days strong{color:#245f8e;}
.am-invoice-total-grid .invoice-sum strong{color:#315e7d;}
.am-invoice-total-grid .profit-sum strong{color:#3d7552;}
@media(max-width:760px){
  .am-invoice-total-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .am-invoice-total-grid>div{border-right:0;border-bottom:1px solid #e2e8ec;padding:7px 5px;}
  .am-invoice-total-grid>div:nth-last-child(-n+2){border-bottom:0;}
}

/* ===== Audit Manager v1.8.0 · planning + checklist travel dates ===== */
.am-planning-details{border:1px dashed #d8dce8!important;background:#fbfaff!important}
.am-planning-details>summary{color:#66568c!important}
.am-planning-details.is-disabled{opacity:.55}
.am-planning-grid{display:grid;grid-template-columns:minmax(145px,.7fr) minmax(145px,.7fr) minmax(220px,1.6fr);gap:10px;align-items:end;padding-top:10px}
.am-planning-note{align-self:center;color:#7c728e;font-size:10px;line-height:1.35}
.am-audit-year-field{max-width:110px}
.am-col-flight-date,.am-checklist-travel-date{width:74px!important;min-width:58px!important;max-width:92px!important;text-align:center!important;white-space:normal!important}
.am-checklist-travel-date{font-weight:750;color:#405565}
.amc-planned{background:#eee8fb!important;color:#5e4a87!important}
.amc-planned-text{max-width:96%;color:#5e4a87;line-height:1.12;text-align:center}
.amc-planned-text strong{display:block;font-size:9px;font-weight:850;overflow-wrap:anywhere}
.amc-planned-text small{display:block;margin-top:3px;font-size:7px;font-weight:750;color:#79669e}
.am-legend i.planned{background:#eee8fb;border:1px solid #d3c6ef}
.amc-day.amc-weekend:not(.amc-audit):not(.amc-unconfirmed):not(.amc-travel):not(.amc-planned):not(.amc-custom):not(.amc-past){background:#f5f6f7!important}
@media(max-width:720px){.am-planning-grid{grid-template-columns:1fr 1fr}.am-planning-note{grid-column:1/-1}.am-col-flight-date,.am-checklist-travel-date{min-width:54px!important}}

/* ===== Audit Manager v1.8.1 · compact planning + invoice totals ===== */
.am-modal-combine-list [hidden]{display:none!important;}
.am-planning-details>summary{display:flex!important;align-items:center!important;gap:6px!important;font-weight:850!important;}
.am-planning-details>summary small{font-size:8px!important;font-weight:700!important;color:#8b80a4!important;}
.am-planning-grid{grid-template-columns:minmax(120px,.55fr) minmax(260px,1.3fr) minmax(220px,1.2fr)!important;}
.am-planning-subgrid{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:8px;}
.am-planning-subgrid[hidden]{display:none!important;}
.am-planning-subgrid[data-plan-week-fields]{grid-template-columns:minmax(140px,220px);}
.amc-planned-text small{margin-top:2px!important;}

/* Invoices now include a calculated Total days column before Per day. */
.am-invoice-table th:nth-child(1){width:118px!important;min-width:110px!important;}
.am-invoice-table th:nth-child(2){width:170px!important;min-width:145px!important;text-align:left!important;}
.am-invoice-table th:nth-child(3){width:66px!important;min-width:60px!important;}
.am-invoice-table th:nth-child(4),
.am-invoice-table th:nth-child(5),
.am-invoice-table th:nth-child(6),
.am-invoice-table th:nth-child(7){width:62px!important;min-width:56px!important;text-align:center!important;}
.am-invoice-table th:nth-child(8){width:74px!important;min-width:68px!important;}
.am-invoice-table th:nth-child(9){width:96px!important;min-width:88px!important;}
.am-invoice-table th:nth-child(10){width:84px!important;min-width:78px!important;}
.am-total-days-cell{background:#eef5fa!important;color:#245f8e!important;font-weight:900!important;border-left:1px solid #d9e5ed!important;border-right:1px solid #d9e5ed!important;}
.am-invoice-row.invoice-pending .am-total-days-cell{background:#d9ebf8!important;}
.am-invoice-row.invoice-paid .am-total-days-cell{background:#dcebdc!important;}
.am-auto-invoice-number{background:#f2f6fa!important;border-left:2px solid #9fb9cc!important;border-right:2px solid #9fb9cc!important;font-weight:900!important;vertical-align:middle!important;}
.am-invoice-total-grid{grid-template-columns:repeat(7,minmax(86px,1fr))!important;}
.am-invoice-total-grid .profit-month strong{color:#6a568d;}
@media(max-width:760px){
  .am-planning-grid{grid-template-columns:1fr!important;}
  .am-planning-subgrid{grid-template-columns:1fr 1fr;}
  .am-invoice-total-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .am-invoice-total-grid>div:nth-last-child(-n+2){border-bottom:0;}
}


/* ===== Audit Manager v1.8.2 · planning UI + invoice summary refinement ===== */
/* Match the compact Combine Audit disclosure more closely. */
.am-planning-details>summary{
  padding:8px 10px!important;
  font-size:10px!important;
  font-weight:850!important;
  line-height:1.15!important;
}
.am-planning-details>summary small{
  font-size:8px!important;
  font-weight:700!important;
  text-transform:uppercase;
}
/* Keep the estimate editor compact and make both month selectors unambiguously clickable. */
.am-planning-grid{
  grid-template-columns:minmax(115px,.45fr) minmax(280px,1.25fr)!important;
  gap:9px!important;
  align-items:end!important;
  position:relative!important;
  overflow:visible!important;
}
.am-planning-subgrid{
  position:relative!important;
  z-index:5!important;
  pointer-events:auto!important;
}
.am-planning-subgrid label,
.am-planning-subgrid select{
  position:relative!important;
  z-index:6!important;
  pointer-events:auto!important;
}
.am-planning-subgrid select{width:100%!important;min-width:0!important;}
.am-planning-note{display:none!important;}
/* The yearly invoice footer now contains only the consolidated figures. */
.am-invoice-total-grid{
  grid-template-columns:repeat(4,minmax(130px,1fr))!important;
}
@media(max-width:760px){
  .am-planning-grid{grid-template-columns:1fr!important;}
  .am-invoice-total-grid{grid-template-columns:repeat(2,minmax(120px,1fr))!important;}
}


/* ===== Audit Manager v1.8.3 · discreet month estimates + stable combined ordering ===== */
/* Month estimates are planning hints, not occupied calendar days. Keep them as a tiny line below the month title. */
.amc-month-estimates{
  display:flex;
  align-items:center;
  gap:5px;
  min-height:12px;
  margin:-4px 0 6px;
  max-width:100%;
  color:#81798d;
  font-size:8px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
}
.amc-estimate-dot{
  flex:0 0 auto;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#b9afcf;
}
.amc-estimate-label{
  flex:0 0 auto;
  color:#9a90a9;
  font-size:7px;
  font-weight:850;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.amc-estimate-list{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#777080;
}
.amc-estimate-list em{font-style:normal;font-weight:800;color:#9a91a3;}
