:root { font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #17201f; background: #edf1ef; }
* { box-sizing: border-box; } body { margin: 0; } button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #1677a7; outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 10; } .skip-link:focus { top: 16px; }
#app { width: min(1680px, calc(100% - 16px)); margin: 8px auto 48px; display: grid; gap: 12px; }
.app-header, .widget, .layout-preview { background: rgba(255,255,255,.78); border: 1px solid rgba(20,45,40,.12); border-radius: 18px; padding: 22px; box-shadow: 0 18px 45px rgba(20,40,35,.08); }
.app-header, .widget { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.app-header nav { display: flex; gap: 18px; } .app-header a { color: inherit; font-weight: 700; text-decoration: none; }
.site-brand { margin-right: auto; font-size: 1.05rem; font-weight: 900 !important; } .site-navigation nav a { min-height: 36px; display: inline-flex; align-items: center; padding: 0 4px; border-bottom: 2px solid transparent; } .site-navigation nav a[aria-current="page"] { color: #2c725d; border-bottom-color: #2c725d; }
.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: start; gap: 32px; padding: 28px; border: 1px solid rgba(20,45,40,.12); border-radius: 18px; background: rgba(255,255,255,.78); box-shadow: 0 18px 45px rgba(20,40,35,.08); } .footer-brand { color: inherit; font-weight: 900; text-decoration: none; } .site-footer nav { display: grid; gap: 8px; } .site-footer nav strong { font-size: .75rem; text-transform: uppercase; color: #2c725d; } .site-footer nav a { color: inherit; font-weight: 700; }
.app-intro { padding: 48px 8px 24px; } .app-intro h1 { font-size: clamp(2.2rem, 7vw, 5.5rem); margin: 0; }
.app-intro p, .layout-region span { color: #2c725d; font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.layout-preview { min-height: 440px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; background: linear-gradient(135deg, rgba(207,229,224,.82), rgba(240,232,216,.72)); }
.layout-region { grid-column: span 6; min-height: 180px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 22px; border: 1px solid rgba(20,45,40,.12); border-radius: 14px; background: rgba(255,255,255,.72); }
.layout-region:first-child { grid-column: 1 / -1; min-height: 100px; } .layout-region h2 { margin: 6px 0; }
.module-list { display: grid; gap: 16px; }
.home-page-widget { overflow: hidden; border: 1px solid rgba(20,45,40,.12); border-radius: 18px; background: #fff; box-shadow: 0 18px 45px rgba(20,40,35,.08); }
.home-page-bar { min-height: 72px; display: flex; align-items: center; gap: 24px; padding: 16px 22px; border-bottom: 1px solid rgba(20,45,40,.10); } .home-page-brand { margin-right: auto; color: inherit; font-weight: 850; text-decoration: none; }
.home-page-bar nav { display: flex; gap: 20px; } .home-page-bar nav a { color: inherit; font-weight: 700; text-decoration: none; } .home-menu-toggle { display: none; border: 0; border-radius: 10px; padding: 10px 12px; background: #edf1ef; cursor: pointer; }
.home-page-splash { min-height: 520px; display: grid; align-content: center; justify-items: start; gap: 18px; padding: clamp(32px, 8vw, 96px); background: linear-gradient(135deg, #dcece8, #f3eadb); } .home-page-splash h2 { max-width: 820px; margin: 0; font-size: clamp(2.6rem, 8vw, 6.8rem); line-height: .98; } .home-page-splash > p { max-width: 62ch; font-size: 1.1rem; }
.home-page-actions { display: flex; gap: 10px; } .home-page-actions a { border-radius: 999px; padding: 13px 18px; font-weight: 800; text-decoration: none; } .home-primary-action { color: #fff; background: #17201f; } .home-secondary-action { color: #17201f; border: 1px solid rgba(20,45,40,.18); background: rgba(255,255,255,.62); }
.about-page-widget { display: grid; gap: 28px; padding: clamp(28px, 6vw, 72px); border: 1px solid rgba(20,45,40,.12); border-radius: 18px; background: #fff; box-shadow: 0 18px 45px rgba(20,40,35,.08); } .about-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; } .about-page-heading h2 { max-width: 780px; margin: 8px 0 0; font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1; }
.about-edit-toggle { border: 1px solid rgba(20,45,40,.16); border-radius: 999px; padding: 11px 16px; background: #edf1ef; font-weight: 800; cursor: pointer; white-space: nowrap; } .about-page-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; } .about-page-grid article { min-height: 220px; padding: 24px; border-radius: 15px; background: #edf1ef; } .about-page-grid h3 { margin-top: 0; } .about-values ul { display: grid; gap: 10px; padding-left: 20px; } [data-about-field][contenteditable="true"] { border-radius: 6px; outline: 2px dashed #2c725d; outline-offset: 5px; background: rgba(255,255,255,.60); }
.contact-page-widget { display: grid; gap: 28px; padding: clamp(28px, 6vw, 72px); border: 1px solid rgba(20,45,40,.12); border-radius: 18px; background: #fff; box-shadow: 0 18px 45px rgba(20,40,35,.08); } .contact-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; } .contact-page-heading h2 { max-width: 780px; margin: 8px 0 12px; font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1; } .contact-page-heading p { max-width: 60ch; }
.contact-edit-toggle { border: 1px solid rgba(20,45,40,.16); border-radius: 999px; padding: 11px 16px; background: #edf1ef; font-weight: 800; cursor: pointer; white-space: nowrap; } .contact-methods { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; } .contact-methods article { min-height: 150px; display: grid; align-content: end; gap: 8px; padding: 22px; border-radius: 15px; background: #edf1ef; } .contact-methods span { color: #2c725d; font-size: .76rem; font-weight: 800; text-transform: uppercase; } .contact-methods a { color: inherit; font-weight: 800; overflow-wrap: anywhere; } [data-contact-field][contenteditable="true"] { border-radius: 6px; outline: 2px dashed #2c725d; outline-offset: 5px; background: rgba(255,255,255,.60); }
.responsive-ready img, .responsive-ready video, .responsive-ready canvas, .responsive-ready svg { max-width: 100%; height: auto; } .responsive-ready input, .responsive-ready select, .responsive-ready textarea, .responsive-ready button { max-width: 100%; } .responsive-ready :where(button, a, input, select) { min-height: 44px; }
.responsive-container { width: min(100% - 32px, 1200px); margin-inline: auto; } .responsive-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); } .responsive-stack { display: flex; flex-wrap: wrap; gap: clamp(10px, 2vw, 20px); } .responsive-text { font-size: clamp(1rem, .92rem + .35vw, 1.25rem); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.widget h2 { margin: 4px 0 8px; font-size: clamp(1.4rem, 3vw, 2.2rem); } .widget p { max-width: 62ch; }
.widget-category { color: #2c725d; font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.evolve-button, .header-action, #copy-evolution { border: 0; border-radius: 999px; padding: 12px 18px; color: white; background: #17201f; cursor: pointer; white-space: nowrap; }
dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow: auto; border: 0; border-radius: 22px; padding: 26px; } dialog::backdrop { background: rgba(10,20,18,.35); backdrop-filter: blur(8px); }
.dialog-heading, .dialog-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; } .dialog-heading h2 { margin: 2px 0 6px; font-size: 2rem; } .dialog-heading p { margin: 0; }
.dialog-eyebrow, .target-preview span, .request-field > span, dialog h3 { color: #2c725d; font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.dialog-close { border: 0; background: #eef1ef; border-radius: 50%; width: 40px; height: 40px; font-size: 1.6rem; cursor: pointer; }
.target-preview { display: grid; gap: 4px; margin: 20px 0; padding: 16px; border: 1px dashed rgba(44,114,93,.38); border-radius: 16px; background: rgba(44,114,93,.08); } .target-preview strong { font-size: 1.2rem; } .target-preview small { color: #596562; }
.evolution-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; max-height: 220px; overflow: auto; padding: 2px; }
.evolution-option { display: grid; gap: 3px; text-align: left; min-height: 72px; padding: 12px; border: 1px solid rgba(20,45,40,.12); border-radius: 13px; background: #f6f8f7; cursor: pointer; } .evolution-option span { font-weight: 800; } .evolution-option small { color: #67716f; } .evolution-option.selected { border-color: #2c725d; background: rgba(44,114,93,.12); } .evolution-option:disabled { opacity: .48; cursor: default; }
.request-field { display: grid; gap: 8px; margin: 20px 0; } .request-field textarea { width: 100%; resize: vertical; padding: 14px; border: 1px solid rgba(20,45,40,.18); border-radius: 14px; font: inherit; }
.dialog-actions { align-items: center; } #evolution-status { color: #596562; font-size: .88rem; font-weight: 650; }
@media (max-width: 700px) { .app-header, .widget, .layout-region, .dialog-actions { align-items: flex-start; flex-direction: column; } .app-header nav { order: 3; width: 100%; flex-wrap: wrap; } .site-brand { margin-right: 0; } .site-footer { grid-template-columns: 1fr; } .layout-region, .layout-region:first-child { grid-column: 1 / -1; } .evolve-button, #copy-evolution { width: 100%; } .evolution-options { grid-template-columns: 1fr; } .home-menu-toggle { display: inline-flex; } .home-page-bar { flex-wrap: wrap; } .home-page-bar nav { display: none; flex-basis: 100%; flex-direction: column; } .home-page-bar nav.open { display: flex; } .home-page-splash { min-height: 440px; } .home-page-actions { width: 100%; flex-direction: column; } .home-page-actions a { text-align: center; } .about-page-heading, .contact-page-heading, .privacy-policy-heading { flex-direction: column; } .about-page-grid, .contact-methods { grid-template-columns: 1fr; } .about-edit-toggle, .contact-edit-toggle, .privacy-edit-toggle { width: 100%; } }
@media (max-width: 575.98px) { .responsive-grid { grid-template-columns: 1fr; } .responsive-container { width: min(100% - 24px, 540px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }.work-orders-widget { display:grid;gap:18px;padding:clamp(18px,3vw,36px);border:1px solid rgba(20,45,40,.12);border-radius:18px;background:#fff;box-shadow:0 18px 45px rgba(20,40,35,.08) }.work-orders-heading,.work-order-heading-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.work-orders-heading h2{margin:4px 0 8px;font-size:clamp(2rem,5vw,4rem)}.work-order-heading-actions button,.work-order-create>button{min-height:44px;border:0;border-radius:10px;padding:10px 14px;font-weight:800;cursor:pointer}.work-order-dashboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.work-order-dashboard article{display:grid;gap:4px;padding:16px;border-radius:13px;background:#edf1ef}.work-order-dashboard strong{font-size:1.6rem}.work-order-dashboard span,.work-order-tools label>span,.work-order-create label>span,.detail-grid label>span{font-size:.7rem;font-weight:850;text-transform:uppercase;color:#2c725d}.work-order-create{display:grid;grid-template-columns:1.4fr 1fr .5fr 1fr .7fr 1fr auto;align-items:end;gap:9px;padding:14px;border-radius:15px;background:#edf1ef}.work-order-create label,.work-order-tools label,.detail-grid label{display:grid;gap:6px;min-width:0}.work-order-create input,.work-order-create select,.work-order-tools input,.work-order-tools select,.detail-grid input,.detail-grid select,.detail-grid textarea,.note-composer textarea{width:100%;min-height:42px;border:1px solid rgba(20,45,40,.15);border-radius:9px;padding:9px;background:#fff;font:inherit}.work-order-create>button{color:#fff;background:#17201f}.work-order-tools{display:grid;grid-template-columns:minmax(220px,1fr) auto auto auto;align-items:end;gap:10px}.work-order-check{display:flex!important;align-items:center;min-height:42px}.work-order-check input{width:auto;min-height:auto}.work-order-table-wrap{overflow:auto;border:1px solid rgba(20,45,40,.12);border-radius:14px}.work-order-table{width:100%;border-collapse:collapse;white-space:nowrap}.work-order-table th,.work-order-table td{padding:12px;text-align:left;border-bottom:1px solid rgba(20,45,40,.08);font-size:.86rem}.work-order-table th{position:sticky;top:0;background:#edf1ef;font-size:.68rem;text-transform:uppercase}.work-order-table tbody tr{cursor:pointer}.work-order-table tbody tr:hover,.work-order-table tbody tr:focus{background:rgba(44,114,93,.08);outline:none}.work-order-badge{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:.72rem;font-weight:850;background:#e5e9e7}.status-new{background:#dcecff;color:#145b9a}.status-scheduled{background:#eee4ff;color:#6940a5}.status-assigned,.status-in-progress{background:#ffe6cf;color:#9c4c08}.status-waiting-parts,.status-waiting-contractor{background:#fff3bf;color:#755b00}.status-completed{background:#d9f4e3;color:#176a39}.status-closed{background:#e5e7e6;color:#555}.priority-emergency{background:#ffdada;color:#a51f1f}.priority-high{background:#ffe5cf;color:#9b4700}.work-order-empty{margin:0;padding:28px;text-align:center;color:#66706e}.work-order-dialog{width:min(980px,calc(100% - 24px));max-height:calc(100vh - 24px);overflow:auto;border:0;border-radius:20px;padding:24px}.work-order-dialog-close{position:sticky;top:0;z-index:2;display:flex;justify-content:flex-end}.work-order-dialog-close button{width:40px;height:40px;border:0;border-radius:50%;font-size:1.5rem}.work-order-detail-header{display:flex;justify-content:space-between;gap:18px;margin-bottom:16px}.work-order-detail-header h2{margin:4px 0;font-size:2rem}.work-order-detail-header>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.work-order-detail-header button,.note-composer button{min-height:40px;border:1px solid rgba(20,45,40,.14);border-radius:9px;padding:8px 12px;background:#edf1ef;font-weight:800}.work-order-dialog details{margin:10px 0;border:1px solid rgba(20,45,40,.12);border-radius:12px;background:#f8faf9}.work-order-dialog summary{padding:15px;font-weight:850;cursor:pointer}.detail-grid,.note-composer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 15px 15px}.detail-wide{grid-column:1/-1}.detail-grid textarea{min-height:90px}.attachment-picker{display:grid;gap:8px;padding:0 15px 15px}.activity-timeline,[data-order-notes],[data-order-attachment-list]{display:grid;gap:9px;margin:0;padding:0 32px 16px}.activity-timeline li,[data-order-notes] li{display:grid;gap:3px}.read-only-notice{padding:14px;border-radius:10px;background:#fff3bf;font-weight:750}@media(max-width:1000px){.work-order-dashboard{grid-template-columns:repeat(2,1fr)}.work-order-create{grid-template-columns:repeat(2,1fr)}.work-order-create>button{grid-column:1/-1}.work-order-tools{grid-template-columns:1fr 1fr}}@media(max-width:620px){.work-orders-heading,.work-order-detail-header{flex-direction:column}.work-order-heading-actions{width:100%;flex-wrap:wrap}.work-order-dashboard,.work-order-create,.work-order-tools,.detail-grid,.note-composer{grid-template-columns:1fr}.work-order-create>button,.detail-wide{grid-column:auto}.work-order-table-wrap{border:0}.work-order-table thead{display:none}.work-order-table,.work-order-table tbody,.work-order-table tr,.work-order-table td{display:block;width:100%}.work-order-table tr{margin-bottom:10px;padding:12px;border:1px solid rgba(20,45,40,.12);border-radius:12px}.work-order-table td{display:flex;justify-content:space-between;gap:12px;border:0;padding:6px}.work-order-table td:before{content:attr(data-label);font-weight:800}.work-order-dialog{padding:14px}}
.yada-work-order-intake{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px;padding:20px;border:1px solid rgba(20,45,40,.1);border-radius:18px;background:#f3f6f5;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}.yada-work-order-intake:before{content:'New work order';grid-column:1/-1;margin-bottom:2px;color:#17201f;font-size:1.15rem;font-weight:850}.yada-work-order-intake label{height:100%;padding:11px;border:1px solid rgba(20,45,40,.09);border-radius:12px;background:#fff}.yada-work-order-intake label>span{min-height:1.8em;display:flex;align-items:flex-end;line-height:1.25}.yada-work-order-intake :is(input,select,textarea){border-color:rgba(20,45,40,.18);background:#fbfcfc;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.yada-work-order-intake :is(input,select,textarea):hover{border-color:rgba(44,114,93,.42);background:#fff}.yada-work-order-intake textarea{width:100%;min-height:96px;resize:vertical;border:1px solid rgba(20,45,40,.18);border-radius:9px;padding:10px;background:#fbfcfc;font:inherit}.yada-work-order-intake>button{grid-column:1/-1;justify-self:end;min-width:190px;margin-top:4px;border-radius:999px;padding-inline:24px;background:#1f6f59;box-shadow:0 9px 20px rgba(31,111,89,.2);transition:transform .16s ease,background .16s ease,box-shadow .16s ease}.yada-work-order-intake>button:hover{transform:translateY(-1px);background:#185c49;box-shadow:0 12px 24px rgba(31,111,89,.26)}.work-order-create :is(input,select,textarea):focus-visible,.work-order-dialog :is(input,select,textarea,button,summary):focus-visible{outline:3px solid rgba(44,114,93,.38);outline-offset:2px}@media(max-width:620px){.yada-work-order-intake{grid-template-columns:1fr;padding:14px}.yada-work-order-intake:before,.yada-work-order-intake>button{grid-column:auto}.yada-work-order-intake>button{width:100%;justify-self:stretch}}
.work-order-role-panel{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,.5fr) minmax(190px,.5fr);gap:12px;align-items:end;padding:16px;border:1px solid rgba(44,114,93,.18);border-radius:16px;background:linear-gradient(135deg,rgba(44,114,93,.12),rgba(255,255,255,.9));box-shadow:inset 0 1px 0 rgba(255,255,255,.85)}
.work-order-role-panel h3{margin:3px 0 6px;font-size:1.2rem}
.work-order-role-panel p{margin:0;color:#586663;font-weight:700}
.work-order-role-panel label{display:grid;gap:6px;font-weight:800;color:#2c725d}
.work-order-role-panel label span{font-size:.7rem;text-transform:uppercase}
.work-order-role-panel input,.work-order-role-panel select{width:100%;min-height:44px;border:1px solid rgba(20,45,40,.16);border-radius:10px;padding:10px;background:#fff;font:inherit}
.work-order-role-panel :is(input,select):focus-visible{outline:3px solid rgba(44,114,93,.38);outline-offset:2px}
.work-order-role-note{display:inline-flex;margin-left:8px;border-radius:999px;padding:5px 9px;background:rgba(44,114,93,.12);color:#1f6f59;font-size:.72rem;font-weight:850}
.role-locked-field{position:relative;opacity:.78}
.role-locked-field span::after{content:' locked';margin-left:5px;color:#8a6a19;text-transform:none;font-weight:800}
.work-order-dialog [disabled]{cursor:not-allowed;opacity:.7}
.work-order-detail-header [data-order-archive]:disabled{opacity:.46}
.work-order-detail-header .danger-action{border-color:rgba(160,30,30,.22);background:#fff1f1;color:#9d1c1c}
.work-order-detail-header .danger-action:not(:disabled):hover{background:#ffe4e4}
.ticket-inbox-view{min-height:calc(100vh - 96px);grid-template-rows:auto auto minmax(360px,1fr);gap:18px}
.ticket-inbox-view .dashboard-hidden,.ticket-inbox-view .role-hidden{display:none}
.ticket-inbox-view .work-orders-heading{align-items:center;padding:4px 2px 10px;border-bottom:1px solid rgba(20,45,40,.08)}
.ticket-inbox-view .work-orders-heading h2{font-size:clamp(2rem,4vw,3.5rem)}
.inbox-add-ticket-button{display:inline-grid!important;place-items:center;width:52px;height:52px;min-height:52px;border:0!important;border-radius:999px!important;color:#fff!important;background:#17201f!important;font-size:2rem!important;line-height:1!important;box-shadow:0 14px 28px rgba(20,40,35,.18);cursor:pointer}
.inbox-add-ticket-button:hover{transform:translateY(-1px);background:#1f6f59!important}
.inbox-add-ticket-button:focus-visible{outline:3px solid rgba(44,114,93,.38);outline-offset:3px}
.ticket-inbox-view .work-order-tools{order:5}
.ticket-inbox-view .work-order-table-wrap{order:6;min-height:min(58vh,680px);display:grid;grid-template-rows:auto 1fr;background:linear-gradient(180deg,#fff,#f8faf9);box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 18px 42px rgba(20,40,35,.06)}
.ticket-inbox-view .work-order-table{align-self:start}
.ticket-inbox-view .work-order-table th{padding:16px 14px;background:#eaf0ed;color:#17201f;font-size:.72rem;letter-spacing:.02em}
.ticket-inbox-view .work-order-table td{padding:16px 14px;font-size:.94rem}
.ticket-inbox-view .work-order-table tbody tr:last-child td{border-bottom:0}
.ticket-inbox-view .work-order-empty{align-self:stretch;min-height:320px;display:grid;align-content:center;justify-items:center;gap:10px;margin:0;padding:52px 24px;text-align:center;color:#66706e}
.ticket-inbox-view .work-order-empty[hidden]{display:none}
.empty-inbox-icon{display:grid;place-items:center;width:92px;height:92px;border-radius:28px;background:linear-gradient(135deg,#edf3f1,#fff);border:1px solid rgba(20,45,40,.1);box-shadow:0 16px 32px rgba(20,40,35,.08)}
.empty-inbox-icon svg{width:54px;height:54px;fill:none;stroke:#2c725d;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.work-order-empty strong{color:#17201f;font-size:1.35rem}
.work-order-empty p{max-width:42ch;margin:0;font-weight:700}
@media(max-width:700px){.ticket-inbox-view{min-height:auto}.ticket-inbox-view .work-order-table-wrap{min-height:320px}.ticket-inbox-view .work-order-empty{min-height:260px}.empty-inbox-icon{width:76px;height:76px;border-radius:22px}.empty-inbox-icon svg{width:44px;height:44px}}
.work-order-intake-dialog{width:min(1080px,calc(100% - 28px));height:min(900px,calc(100vh - 28px));max-height:calc(100vh - 28px);overflow:auto;border:0;border-radius:24px;padding:22px;background:#fbfcfc;box-shadow:0 28px 80px rgba(10,20,18,.26)}
.work-order-intake-dialog::backdrop{background:rgba(10,20,18,.38);backdrop-filter:blur(10px)}
.work-order-intake-dialog .work-order-dialog-close{position:sticky;top:0;z-index:8;margin:-6px -4px 4px 0;background:linear-gradient(180deg,#fbfcfc 65%,rgba(251,252,252,0))}
.work-order-intake-dialog .full-work-order-intake{box-shadow:none;border-color:rgba(20,45,40,.08);background:linear-gradient(135deg,#f7faf9,#edf3f1)}
.evolvable-section{position:relative}
.section-evolve-button{position:absolute;top:10px;right:10px;z-index:3;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-height:34px;border:1px solid rgba(31,111,89,.18);border-radius:999px;color:#1f6f59;background:rgba(255,255,255,.86);box-shadow:0 8px 18px rgba(20,40,35,.08);font-size:1rem;font-weight:900;cursor:pointer;backdrop-filter:blur(10px)}
.section-evolve-button:hover{background:#1f6f59;color:#fff;transform:translateY(-1px)}
.section-evolve-button:focus-visible{outline:3px solid rgba(44,114,93,.38);outline-offset:2px}
.work-order-dashboard{padding-top:46px}
.work-order-role-panel{padding-right:64px}
.streamlined-work-order-intake{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:18px;background:linear-gradient(135deg,#f5f8f7,#edf3f1)}
.streamlined-work-order-intake:before{display:none}
.streamlined-work-order-intake .intake-header{grid-column:1/-1;display:grid;grid-template-columns:minmax(220px,.6fr) minmax(280px,1fr);align-items:end;gap:18px;padding:4px 2px 10px;border-bottom:1px solid rgba(20,45,40,.08)}
.streamlined-work-order-intake .intake-header h3{margin:0;font-size:1.35rem}
.streamlined-work-order-intake .intake-header p{max-width:62ch;margin:0;color:#5f6d69;font-size:.92rem;font-weight:700;line-height:1.35}
.streamlined-work-order-intake label{padding:12px;border-radius:14px}
.streamlined-work-order-intake .detail-wide{grid-column:span 2}
.streamlined-work-order-intake textarea{min-height:78px}
.streamlined-work-order-intake button[type="submit"]{grid-column:4;justify-self:stretch;align-self:end;min-width:0}
.full-work-order-intake{counter-reset:intake-step;grid-template-columns:1fr;align-items:stretch;padding-top:58px}
.full-work-order-intake fieldset{counter-increment:intake-step;display:grid;position:relative;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 0 22px;padding:24px 16px 16px 26px;border:1px solid rgba(20,45,40,.1);border-radius:16px;background:rgba(255,255,255,.76);box-shadow:0 10px 26px rgba(20,40,35,.045)}
.full-work-order-intake fieldset::before{content:counter(intake-step);position:absolute;left:-22px;top:18px;display:grid;place-items:center;width:36px;height:36px;border-radius:999px;color:#fff;background:#1f6f59;font-size:.9rem;font-weight:900;box-shadow:0 8px 18px rgba(31,111,89,.22)}
.full-work-order-intake fieldset::after{content:'';position:absolute;left:-5px;top:58px;bottom:-20px;width:2px;background:linear-gradient(#d9e4e0,#edf3f1)}
.full-work-order-intake fieldset:last-of-type::after{display:none}
.full-work-order-intake fieldset .section-evolve-button{top:12px;right:12px;width:30px;height:30px;min-height:30px;font-size:.9rem}
.full-work-order-intake legend{padding:0 8px;color:#1f6f59;font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:.02em}
.full-work-order-intake label{height:auto;padding:10px;border-radius:12px}
.full-work-order-intake .detail-wide{grid-column:1/-1}
.full-work-order-intake textarea{min-height:74px}
.full-work-order-intake button[type="submit"]{grid-column:auto;justify-self:end;min-width:220px}
.toggle-field{align-content:center;grid-template-columns:1fr auto;align-items:center;column-gap:12px;min-height:58px}
.toggle-field>span:first-child{grid-column:1}
.toggle-field>input[type="checkbox"]{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none}
.toggle-control{position:relative;grid-column:2;display:block;width:46px;min-width:46px;height:28px;min-height:28px;margin-top:0;border:0;border-radius:999px;background:#d6ddda;box-shadow:inset 0 1px 3px rgba(20,40,35,.18);overflow:hidden;transition:background .16s ease}
.toggle-control::before{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:999px;background:#fff;box-shadow:0 3px 8px rgba(20,40,35,.22);transition:transform .16s ease}
.toggle-control::after{content:'No';position:absolute;right:54px;top:50%;transform:translateY(-50%);color:#6c7773;font-size:.72rem;font-weight:900;text-transform:uppercase}
.toggle-control span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.toggle-field>input[type="checkbox"]:checked+.toggle-control{background:#34c759}
.toggle-field>input[type="checkbox"]:checked+.toggle-control::before{transform:translateX(18px)}
.toggle-field>input[type="checkbox"]:checked+.toggle-control::after{content:'Yes';color:#1f6f59}
.toggle-field>input[type="checkbox"]:focus-visible+.toggle-control{outline:3px solid rgba(44,114,93,.38);outline-offset:2px}
.toggle-field>input[type="checkbox"]:disabled+.toggle-control{opacity:.65;cursor:not-allowed}
@media(max-width:920px){.full-work-order-intake fieldset{grid-template-columns:repeat(2,minmax(0,1fr))}.full-work-order-intake button[type="submit"]{width:100%;justify-self:stretch}}
@media(max-width:620px){.full-work-order-intake fieldset{grid-template-columns:1fr;margin-left:18px;padding-left:22px}.full-work-order-intake .detail-wide{grid-column:auto}.toggle-field{grid-template-columns:1fr auto}.streamlined-work-order-intake .intake-header{grid-template-columns:1fr}}
@media(max-width:920px){.streamlined-work-order-intake{grid-template-columns:repeat(2,minmax(0,1fr))}.streamlined-work-order-intake .intake-header{display:grid}.streamlined-work-order-intake button[type="submit"]{grid-column:1/-1}}
@media(max-width:620px){.streamlined-work-order-intake,.streamlined-work-order-intake .detail-wide{grid-template-columns:1fr;grid-column:auto}.streamlined-work-order-intake button[type="submit"]{grid-column:auto}}
@media(max-width:820px){.work-order-role-panel{grid-template-columns:1fr}}
.property-inbox-panel{order:2;display:grid;gap:14px;padding:18px 18px 20px;border:1px solid rgba(44,114,93,.16);border-radius:18px;background:linear-gradient(135deg,rgba(237,243,241,.95),rgba(255,255,255,.88));box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 14px 34px rgba(20,40,35,.05)}
.property-inbox-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-right:46px}
.property-inbox-header h3{margin:3px 0 0;font-size:1.2rem}
.property-admin-note{align-self:center;margin:0;color:#65736f;font-size:.88rem;font-weight:800}
.property-add-button{min-height:42px;border:1px solid rgba(31,111,89,.18);border-radius:999px;padding:9px 14px;color:#fff;background:#1f6f59;font-weight:850;cursor:pointer;white-space:nowrap}
.property-add-button:hover{background:#185c49}
.property-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}
.property-tab{min-height:92px;display:grid;grid-template-columns:auto 1fr;align-content:center;gap:4px 10px;text-align:left;border:1px solid rgba(20,45,40,.12);border-radius:15px;padding:12px;background:rgba(255,255,255,.76);box-shadow:0 10px 24px rgba(20,40,35,.04);cursor:pointer}
.property-tab[aria-selected="true"]{border-color:rgba(31,111,89,.45);background:rgba(44,114,93,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 12px 26px rgba(31,111,89,.1)}
.property-icon{grid-row:1/3;display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#edf3f1;font-size:1.35rem}
.property-tab strong{align-self:end;font-size:.98rem}
.property-tab small{color:#66706e;font-weight:750}
.property-dialog{width:min(760px,calc(100% - 28px));border-radius:24px;background:#fbfcfc}
.property-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:6px 2px 2px}
.property-form .intake-header,.property-form label:last-of-type,.property-form button[type="submit"]{grid-column:1/-1}
.settings-section{grid-column:1/-1;padding:14px;border:1px solid rgba(31,111,89,.12);border-radius:16px;background:rgba(237,243,241,.8)}
.settings-section h4{margin:0 0 4px;font-size:1.05rem}
.settings-section p{margin:0;color:#65736f;font-weight:750}
.settings-property-inbox{grid-column:1/-1;order:0;margin:0;padding:14px;border-radius:18px;background:rgba(255,255,255,.72)}
.settings-property-inbox .property-tabs{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.settings-property-inbox .property-tab{min-height:82px}
.property-form label{display:grid;gap:6px;padding:12px;border:1px solid rgba(20,45,40,.1);border-radius:14px;background:#fff}
.property-form label span{color:#2c725d;font-size:.72rem;font-weight:850;text-transform:uppercase}
.property-form input,.property-form select,.property-form textarea{width:100%;min-height:42px;border:1px solid rgba(20,45,40,.15);border-radius:10px;padding:9px;background:#fbfcfc;font:inherit}
.property-form textarea{min-height:92px;resize:vertical}
.property-form button[type="submit"]{justify-self:end;min-height:44px;border:0;border-radius:999px;padding:11px 20px;color:#fff;background:#17201f;font-weight:850;cursor:pointer}
.ticket-inbox-view .work-order-tools{display:flex;justify-content:flex-end;align-items:center;flex-wrap:nowrap;gap:8px;justify-self:end;width:max-content;max-width:100%;margin-left:auto;padding:8px;border:1px solid rgba(20,45,40,.1);border-radius:999px;background:rgba(255,255,255,.78);box-shadow:0 14px 34px rgba(20,40,35,.06);backdrop-filter:blur(14px)}
@media(max-width:1000px){.ticket-inbox-view .work-order-tools{width:100%;justify-content:flex-end;overflow-x:auto}}
@media(max-width:620px){.property-inbox-header{flex-direction:column;padding-right:42px}.property-add-button{width:100%}.property-tabs,.property-form{grid-template-columns:1fr}.ticket-inbox-view .work-order-tools{display:grid;grid-template-columns:1fr;border-radius:22px}.ticket-inbox-view .work-order-tools label{width:100%}}
.ticket-inbox-view{position:relative;overflow:hidden;border-radius:28px;background:linear-gradient(145deg,#fbfcfb 0%,#f2f7f5 52%,#ffffff 100%);border-color:rgba(31,111,89,.14);box-shadow:0 24px 70px rgba(20,40,35,.09)}
.ticket-inbox-view::before{content:'';position:absolute;inset:0 0 auto;height:180px;pointer-events:none;background:radial-gradient(circle at 12% 12%,rgba(31,111,89,.12),transparent 34%),radial-gradient(circle at 88% 8%,rgba(203,164,88,.12),transparent 30%);opacity:.75}
.ticket-inbox-view>*{position:relative}
.ticket-inbox-view .work-orders-heading{padding:14px 6px 10px;border:0;align-items:flex-start}
.ticket-inbox-view .work-orders-heading>div:first-child{display:grid;gap:6px;align-content:start;justify-items:start}
.ticket-inbox-view .widget-category{width:max-content;border:1px solid rgba(31,111,89,.18);border-radius:999px;padding:6px 10px;background:rgba(255,255,255,.72);box-shadow:inset 0 1px 0 rgba(255,255,255,.9);color:#1f6f59;font-size:.68rem;letter-spacing:.03em}
.ticket-inbox-view .work-orders-heading h2{margin:0;font-size:clamp(1.35rem,2.4vw,1.85rem);line-height:1;letter-spacing:-.02em}
.ticket-inbox-view .work-orders-heading p:not(.widget-category){margin:0;color:#52615d;font-size:clamp(1.05rem,1.7vw,1.35rem);font-weight:750}
.yada-properties-logo{display:block;width:min(280px,100%);height:auto;max-height:70px;object-fit:contain;object-position:left center;margin:0 0 2px;mix-blend-mode:multiply}
.ticket-inbox-view .work-orders-heading .widget-category+h2{margin-top:-2px;font-size:clamp(1.35rem,2.4vw,1.85rem);font-weight:950;letter-spacing:-.02em;color:#17201f}
.ticket-inbox-view .work-order-heading-actions{align-items:center;flex-wrap:wrap;padding:6px;border:1px solid rgba(20,45,40,.1);border-radius:999px;background:rgba(255,255,255,.74);box-shadow:0 12px 30px rgba(20,40,35,.07);backdrop-filter:blur(14px)}
.ticket-inbox-view .login-session-inline{display:inline-flex;align-items:center;min-height:44px;padding:0 10px 0 14px;color:#5c6966;font-size:.8rem;font-weight:850;white-space:nowrap}
.ticket-inbox-view .login-session-inline strong{color:#17201f;font-weight:950}
.ticket-inbox-view .login-sign-out-inline{background:#fff!important;border:1px solid rgba(20,45,40,.12)!important}
.ticket-inbox-view .toolbar-divider{width:1px;height:30px;background:rgba(20,45,40,.12);margin:0 2px}
.ticket-inbox-view .work-order-heading-actions button{min-height:44px!important;border-radius:999px!important;padding:9px 14px!important;background:#eef2f0!important;color:#17201f!important;box-shadow:none!important}
.ticket-inbox-view .work-order-heading-actions [data-work-order-print]{background:#e4e9e6!important}
.ticket-inbox-view .work-order-heading-actions [data-open-settings]{background:#f7f3e9!important;color:#6c4a14!important}
.ticket-inbox-view .work-order-heading-actions .evolve-button{background:#17201f!important;color:#fff!important}
.ticket-inbox-view .inbox-add-ticket-button{width:44px;height:44px;min-height:44px;padding:0!important;background:linear-gradient(145deg,#1f2a28,#0f1716)!important;box-shadow:0 12px 24px rgba(20,40,35,.16)!important;font-size:1.45rem!important}
.ticket-inbox-view .settings-property-inbox{border-radius:22px;background:rgba(255,255,255,.72);backdrop-filter:blur(14px)}
.ticket-inbox-view .work-order-tools{padding:8px;border:1px solid rgba(20,45,40,.1);border-radius:999px;background:rgba(255,255,255,.78);box-shadow:0 14px 34px rgba(20,40,35,.06);backdrop-filter:blur(14px)}
.ticket-inbox-view .work-order-tools label{gap:0;flex:0 0 auto}
.ticket-inbox-view .work-order-tools label>span:not(.sr-only){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ticket-inbox-view .work-order-tools input,.ticket-inbox-view .work-order-tools select{height:44px;min-height:44px;border:1px solid rgba(20,45,40,.11);border-radius:999px;background:#f8faf9;color:#17201f;font-weight:750;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.ticket-inbox-view .work-order-tools input[type="search"]{width:clamp(240px,28vw,420px);padding-left:42px;background:#f8faf9}
.ticket-inbox-view .work-order-search{position:relative;order:10;flex:0 0 auto}
.ticket-inbox-view .work-order-search::before{content:'⌕';position:absolute;left:15px;top:50%;transform:translateY(-50%);color:#78908a;font-size:1.25rem;font-weight:900}
.ticket-inbox-view .work-order-check{height:44px;align-self:center;border:1px solid rgba(20,45,40,.11);border-radius:999px;padding:0 14px;background:#f8faf9;font-weight:800;white-space:nowrap}
.ticket-inbox-view .work-order-table-wrap{border-radius:22px;border-color:rgba(20,45,40,.1);overflow:hidden}
.ticket-inbox-view .work-order-table th{background:linear-gradient(180deg,#edf4f1,#e2ebe7);padding:18px 16px;color:#1b2926;font-size:.74rem}
.ticket-inbox-view .work-order-table td{background:rgba(255,255,255,.72)}
@media(max-width:760px){.ticket-inbox-view .work-orders-heading{align-items:stretch}.ticket-inbox-view .work-order-heading-actions{justify-content:space-between;border-radius:22px}.ticket-inbox-view .login-session-inline{flex:1 1 100%;justify-content:center;min-height:36px}.ticket-inbox-view .toolbar-divider{display:none}.ticket-inbox-view .work-order-heading-actions button{flex:1}.ticket-inbox-view .inbox-add-ticket-button{flex:0 0 44px}.ticket-inbox-view .work-orders-heading h2{font-size:clamp(1.35rem,7vw,1.85rem)}.yada-properties-logo{width:min(240px,100%);max-height:62px;margin:0;mix-blend-mode:multiply}.ticket-inbox-view .work-orders-heading .widget-category+h2{font-size:clamp(1.35rem,7vw,1.85rem)}}
.login-locked .work-orders-widget{display:none}
.login-ready .login-card{display:none}
.login-ready .login-system-widget{display:none}
.login-system-widget{display:grid;place-items:center;min-height:min(760px,calc(100vh - 72px));padding:clamp(20px,5vw,54px);border:1px solid rgba(20,45,40,.12);border-radius:28px;background:radial-gradient(circle at 20% 18%,rgba(31,111,89,.16),transparent 36%),linear-gradient(145deg,#fbfcfb,#eef5f2);box-shadow:0 24px 70px rgba(20,40,35,.09)}
.login-card{width:min(560px,100%);display:grid;gap:18px;padding:clamp(22px,4vw,38px);border:1px solid rgba(20,45,40,.12);border-radius:26px;background:rgba(255,255,255,.78);box-shadow:0 22px 60px rgba(20,40,35,.1);backdrop-filter:blur(16px)}
.login-logo{display:block;width:min(320px,100%);height:auto;margin:0 0 8px}
.login-card h1{margin:0;color:#17201f;font-size:clamp(2rem,6vw,3.4rem);line-height:.96;letter-spacing:-.035em}
.login-card p{margin:0;color:#5c6966;font-weight:750}
.login-form{display:grid;gap:12px}
.login-form label{display:grid;gap:7px;color:#1f6f59;font-size:.76rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.login-form input{width:100%;min-height:52px;border:1px solid rgba(20,45,40,.13);border-radius:15px;padding:12px 14px;background:#f8faf9;color:#17201f;font:inherit;font-weight:750}
.login-form button,.google-workspace-button{min-height:52px;border:0;border-radius:999px;padding:12px 18px;background:#17201f;color:#fff;font-weight:900;cursor:pointer}
.google-workspace-button{display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;color:#17201f;border:1px solid rgba(20,45,40,.13);box-shadow:0 12px 26px rgba(20,40,35,.06)}
.google-workspace-button span{display:grid;place-items:center;width:28px;height:28px;border-radius:999px;background:linear-gradient(135deg,#4285f4,#34a853,#fbbc05,#ea4335);color:#fff;font-weight:950}
.login-bypass-button{min-height:46px;border:1px dashed rgba(120,85,25,.34);border-radius:999px;padding:10px 16px;background:#fff8eb;color:#7a5418;font-weight:900;cursor:pointer}
.login-bypass-button:hover{background:#ffefd1}
.login-divider{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;color:#788582;font-size:.76rem;font-weight:900;text-transform:uppercase}
.login-divider::before,.login-divider::after{content:'';height:1px;background:rgba(20,45,40,.12)}
.login-note{font-size:.86rem}
.login-session-bar{width:max-content;display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:0 0 2px auto;padding:6px 6px 6px 12px;border:1px solid rgba(20,45,40,.1);border-radius:999px;background:rgba(255,255,255,.72);box-shadow:0 10px 24px rgba(20,40,35,.06);color:#5c6966;font-size:.82rem;font-weight:800}
.login-session-bar button{min-height:34px;border:1px solid rgba(20,45,40,.12);border-radius:999px;padding:7px 12px;background:#fff;color:#17201f;font-weight:900;cursor:pointer}
@media(max-width:620px){.login-system-widget{min-height:auto}.login-ready .login-system-widget{justify-content:stretch}.login-session-bar{width:100%;justify-content:space-between}.login-session-bar button{width:auto}}

@media(max-width:620px){.ticket-inbox-view .work-order-search{order:0}.ticket-inbox-view .work-order-tools input,.ticket-inbox-view .work-order-tools select,.ticket-inbox-view .work-order-tools input[type="search"]{width:100%}}

.ticket-inbox-view .work-order-tools select{
  appearance:none;
  -webkit-appearance:none;
  min-width:clamp(180px,18vw,260px);
  padding:0 44px 0 16px!important;
  border-radius:999px!important;
  border:1px solid rgba(20,45,40,.12)!important;
  background-color:rgba(255,255,255,.86)!important;
  background-image:linear-gradient(45deg,transparent 50%,#17201f 50%),linear-gradient(135deg,#17201f 50%,transparent 50%)!important;
  background-position:calc(100% - 23px) 50%,calc(100% - 15px) 50%!important;
  background-size:8px 8px,8px 8px!important;
  background-repeat:no-repeat!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 8px 18px rgba(20,40,35,.04)!important;
}
.ticket-inbox-view .work-order-tools select:focus{
  outline:3px solid rgba(31,111,89,.18);
  border-color:rgba(31,111,89,.32)!important;
}

.login-demo-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:6px;border:1px solid rgba(20,45,40,.1);border-radius:999px;background:rgba(255,255,255,.66)}
.login-demo-actions .login-bypass-button{border-style:solid;min-height:44px;white-space:nowrap}
.login-demo-actions .employee-demo{background:#eef5f2;color:#1f6f59;border-color:rgba(31,111,89,.18)}
.login-demo-actions .admin-demo{background:#17201f;color:#fff;border-color:#17201f}
.login-demo-actions .employee-demo:hover{background:#e2f0eb}
.login-demo-actions .admin-demo:hover{background:#24302e}
@media(max-width:520px){.login-demo-actions{grid-template-columns:1fr;border-radius:24px}.login-demo-actions .login-bypass-button{width:100%}}

/* Container-fit pass for exported web preview frames */
.ticket-inbox-view{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
.ticket-inbox-view .work-orders-heading{
  display:grid!important;
  grid-template-columns:minmax(0,1fr);
  gap:14px;
}
.ticket-inbox-view .work-order-heading-actions{
  justify-self:start;
  max-width:100%;
  width:max-content;
  overflow:visible;
}
.ticket-inbox-view .work-order-tools{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  justify-self:stretch!important;
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  box-sizing:border-box;
  overflow:visible!important;
}
.ticket-inbox-view .work-order-tools label,
.ticket-inbox-view .work-order-tools select,
.ticket-inbox-view .work-order-tools input,
.ticket-inbox-view .work-order-tools input[type="search"]{
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box;
}
.ticket-inbox-view .work-order-search{
  order:10;
  grid-column:1/-1;
}
.ticket-inbox-view .work-order-check{
  justify-content:center;
  min-width:0!important;
}
.ticket-inbox-view .work-order-table-wrap{
  overflow-x:auto!important;
  overflow-y:hidden;
  max-width:100%;
}
.ticket-inbox-view .work-order-table{
  width:calc(100% - 20px)!important;
  min-width:0!important;
  margin-inline:10px!important;
  table-layout:fixed!important;
}
.ticket-inbox-view .work-order-table th,
.ticket-inbox-view .work-order-table td{
  overflow:hidden;
  text-overflow:ellipsis;
}
.ticket-inbox-view .work-order-table :is(th,td):nth-child(1){width:11%}
.ticket-inbox-view .work-order-table :is(th,td):nth-child(2){width:15%}
.ticket-inbox-view .work-order-table :is(th,td):nth-child(3){width:10%}
.ticket-inbox-view .work-order-table :is(th,td):nth-child(4){width:12%}
.ticket-inbox-view .work-order-table :is(th,td):nth-child(5){width:5%}
.ticket-inbox-view .work-order-table :is(th,td):nth-child(6){width:9%}
.ticket-inbox-view .work-order-table :is(th,td):nth-child(7){width:7%}
.ticket-inbox-view .work-order-table :is(th,td):nth-child(8){width:11%}
.ticket-inbox-view .work-order-table :is(th,td):nth-child(9){width:10%}
.ticket-inbox-view .work-order-table :is(th,td):nth-child(10){width:10%}
.ticket-inbox-view .work-order-table .work-order-badge{
  max-width:100%;
  white-space:nowrap;
}
@media(max-width:980px){
  .ticket-inbox-view .work-order-tools{grid-template-columns:repeat(2,minmax(0,1fr));border-radius:24px}
  .ticket-inbox-view .work-order-search{grid-column:1/-1}
  .ticket-inbox-view .work-order-heading-actions{width:100%;justify-self:stretch;justify-content:flex-start;border-radius:24px}
}
@media(max-width:620px){
  .ticket-inbox-view .work-order-tools{grid-template-columns:1fr!important}
  .ticket-inbox-view .work-order-heading-actions{display:grid!important;grid-template-columns:1fr 1fr;border-radius:24px}
  .ticket-inbox-view .inbox-add-ticket-button{width:100%!important}
}


/* Compact top-right action pill for Work Order Management */
.ticket-inbox-view .work-orders-heading{
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:start!important;
}
.ticket-inbox-view .work-order-heading-actions{
  justify-self:end!important;
  align-self:start!important;
  width:max-content!important;
  max-width:100%!important;
  gap:5px!important;
  padding:4px!important;
  border-radius:999px!important;
}
.ticket-inbox-view .work-order-heading-actions button{
  min-height:32px!important;
  height:32px!important;
  padding:5px 10px!important;
  font-size:.72rem!important;
  line-height:1!important;
}
.ticket-inbox-view .inbox-add-ticket-button{
  width:32px!important;
  height:32px!important;
  min-height:32px!important;
  padding:0!important;
  font-size:1rem!important;
}
.ticket-inbox-view .toolbar-divider{
  height:20px!important;
  margin:0 1px!important;
}
.ticket-inbox-view .login-sign-out-inline{
  min-height:32px!important;
}
@media(max-width:760px){
  .ticket-inbox-view .work-orders-heading{grid-template-columns:1fr!important}
  .ticket-inbox-view .work-order-heading-actions{justify-self:start!important;width:max-content!important}
  .ticket-inbox-view .work-order-heading-actions button{min-height:34px!important;height:34px!important;font-size:.76rem!important}
  .ticket-inbox-view .inbox-add-ticket-button{width:34px!important;height:34px!important;min-height:34px!important}
}
@media(max-width:520px){
  .ticket-inbox-view .work-order-heading-actions{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important;border-radius:20px!important}
  .ticket-inbox-view .toolbar-divider{display:none!important}
  .ticket-inbox-view .inbox-add-ticket-button{width:100%!important}
}


/* Single-line compact inbox filter pill */
.ticket-inbox-view .work-order-tools{
  display:flex!important;
  grid-template-columns:none!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  width:100%!important;
  max-width:100%!important;
  padding:8px!important;
  border-radius:999px!important;
  overflow:hidden!important;
}
.ticket-inbox-view .work-order-tools label{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
}
.ticket-inbox-view .work-order-tools select,
.ticket-inbox-view .work-order-tools input,
.ticket-inbox-view .work-order-check{
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  border-radius:999px!important;
  font-size:.86rem!important;
  line-height:1!important;
}
.ticket-inbox-view .work-order-tools select{
  width:clamp(170px,18vw,260px)!important;
  min-width:170px!important;
}
.ticket-inbox-view .work-order-search{
  order:0!important;
  grid-column:auto!important;
  flex:0 0 clamp(260px,24vw,380px)!important;
  width:clamp(260px,24vw,380px)!important;
}
.ticket-inbox-view .work-order-tools input[type="search"]{
  width:100%!important;
  min-width:0!important;
  padding-left:38px!important;
}
.ticket-inbox-view .work-order-check{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  flex:0 0 160px!important;
  width:160px!important;
  padding:0 14px!important;
  white-space:nowrap!important;
}
.ticket-inbox-view .work-order-check input{
  width:18px!important;
  min-width:18px!important;
  height:18px!important;
  min-height:18px!important;
  margin:0!important;
}
@media(max-width:1180px){
  .ticket-inbox-view .work-order-tools{overflow-x:auto!important;overflow-y:hidden!important}
  .ticket-inbox-view .work-order-tools select{width:180px!important;min-width:180px!important}
  .ticket-inbox-view .work-order-search{flex-basis:280px!important;width:280px!important}
}
@media(max-width:760px){
  .ticket-inbox-view .work-order-tools{display:grid!important;grid-template-columns:1fr 1fr!important;border-radius:24px!important;overflow:visible!important}
  .ticket-inbox-view .work-order-tools label,.ticket-inbox-view .work-order-tools select,.ticket-inbox-view .work-order-search,.ticket-inbox-view .work-order-check{width:100%!important;min-width:0!important;flex:auto!important}
  .ticket-inbox-view .work-order-search{grid-column:1/-1!important}
}
@media(max-width:520px){
  .ticket-inbox-view .work-order-tools{grid-template-columns:1fr!important}
}


/* Property add/remove controls in admin Settings */
.settings-property-inbox .removable-property-tab{
  position:relative;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  padding-right:10px;
}
.property-tab-copy{
  display:grid;
  gap:3px;
  min-width:0;
}
.property-remove-button{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border:1px solid rgba(140,30,30,.14);
  border-radius:999px;
  background:#fff5f2;
  color:#9b2d22;
  font-size:1.05rem;
  font-weight:950;
  line-height:1;
  cursor:pointer;
}
.property-remove-button:hover{
  background:#ffe4de;
}
.property-remove-button:focus-visible{
  outline:3px solid rgba(155,45,34,.24);
  outline-offset:2px;
}
@media(max-width:620px){
  .settings-property-inbox .removable-property-tab{
    grid-template-columns:auto minmax(0,1fr) auto;
  }
}


/* Compact work-order detail dialog action controls */
.work-order-detail-header {
  align-items: flex-start;
}

.work-order-detail-header > div:last-child {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  align-content: flex-start !important;
  gap: 8px !important;
  max-width: 360px !important;
}

.work-order-detail-header > div:last-child button {
  width: auto !important;
  min-width: 0 !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  box-shadow: none !important;
}

.work-order-detail-header [data-order-delete] {
  background: #fff1f1 !important;
  color: #9d1c1c !important;
  border-color: rgba(160, 30, 30, 0.24) !important;
}

.work-order-detail-header [data-order-unlock] {
  background: #f7f3e9 !important;
  color: #6c4a14 !important;
}

@media (max-width: 760px) {
  .work-order-detail-header > div:last-child {
    justify-content: flex-start !important;
    max-width: 100% !important;
  }

  .work-order-detail-header > div:last-child button {
    min-height: 36px !important;
    height: 36px !important;
  }
}


/* Left inbox sidebar and universal assignment controls */
.ticket-inbox-view {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) !important;
  align-items: start;
  column-gap: 16px !important;
}

.ticket-inbox-view .work-orders-heading,
.ticket-inbox-view .work-order-table-wrap,
.ticket-inbox-view .work-order-empty {
  min-width: 0;
}

.ticket-inbox-view .work-orders-heading {
  grid-column: 1 / -1 !important;
}

.ticket-inbox-view .work-order-tools {
  grid-column: 1 !important;
  grid-row: auto !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-self: start !important;
  justify-self: stretch !important;
  width: 100% !important;
  max-width: 260px !important;
  margin: 0 !important;
  padding: 12px !important;
  gap: 10px !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(20,45,40,.1) !important;
  box-shadow: 0 18px 42px rgba(20,40,35,.07) !important;
  overflow: visible !important;
}

.ticket-inbox-view .work-order-tools::before {
  content: "Inbox controls";
  display: block;
  padding: 2px 4px 4px;
  color: #1f6f59;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ticket-inbox-view .work-order-tools label {
  width: 100% !important;
  flex: none !important;
}

.ticket-inbox-view .work-order-tools select,
.ticket-inbox-view .work-order-tools input,
.ticket-inbox-view .work-order-tools input[type="search"],
.ticket-inbox-view .work-order-check {
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  border-radius: 999px !important;
  font-size: .78rem !important;
}

.ticket-inbox-view .work-order-search {
  order: 0 !important;
  width: 100% !important;
  flex: none !important;
}

.ticket-inbox-view .work-order-tools input[type="search"] {
  padding-left: 34px !important;
}

.ticket-inbox-view .work-order-search::before {
  left: 12px !important;
  font-size: 1rem !important;
}

.ticket-inbox-view .work-order-check {
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 0 12px !important;
}

.ticket-inbox-view .work-order-table-wrap {
  grid-column: 2 !important;
  width: 100% !important;
}

.work-order-detail-actions {
  display: grid !important;
  justify-items: end;
  gap: 10px !important;
  max-width: 390px !important;
}

.detail-assignment-panel {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(20,45,40,.1);
  border-radius: 18px;
  background: rgba(248,250,249,.9);
}

.detail-assignment-panel label {
  display: grid;
  gap: 4px;
  min-width: 170px;
}

.detail-assignment-panel span {
  color: #1f6f59;
  font-size: .64rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.detail-assignment-panel select,
.detail-assignment-panel button {
  height: 32px !important;
  min-height: 32px !important;
  border-radius: 999px !important;
  font-size: .74rem !important;
  padding: 5px 10px !important;
}

.detail-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 900px) {
  .ticket-inbox-view {
    grid-template-columns: 1fr !important;
  }

  .ticket-inbox-view .work-order-tools,
  .ticket-inbox-view .work-order-table-wrap {
    grid-column: 1 !important;
    max-width: 100% !important;
  }

  .ticket-inbox-view .work-order-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .ticket-inbox-view .work-order-tools::before,
  .ticket-inbox-view .work-order-search {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 620px) {
  .ticket-inbox-view .work-order-tools {
    grid-template-columns: 1fr !important;
  }

  .work-order-detail-actions,
  .detail-assignment-panel {
    justify-items: stretch;
    width: 100%;
    max-width: 100% !important;
  }

  .detail-assignment-panel {
    display: grid;
  }
}


/* Stretch left inbox sidebar with page content */
.ticket-inbox-view {
  align-items: stretch !important;
}

.ticket-inbox-view .work-order-tools {
  align-self: stretch !important;
  min-height: 100% !important;
  height: auto !important;
  align-content: start !important;
}

@media (max-width: 900px) {
  .ticket-inbox-view {
    align-items: start !important;
  }

  .ticket-inbox-view .work-order-tools {
    align-self: start !important;
    min-height: 0 !important;
  }
}


/* Force left inbox sidebar to continue to page bottom */
.ticket-inbox-view .work-order-tools {
  min-height: calc(100vh - 330px) !important;
  height: 100% !important;
}

@media (min-width: 901px) {
  .ticket-inbox-view {
    grid-auto-rows: auto 1fr !important;
  }

  .ticket-inbox-view .work-order-tools {
    grid-row: 2 / span 2 !important;
  }
}

@media (max-width: 900px) {
  .ticket-inbox-view .work-order-tools {
    min-height: 0 !important;
    height: auto !important;
  }
}


/* Sidebar title placement */
.ticket-inbox-view .work-orders-heading h2 {
  display: none !important;
}

.sidebar-portal-title {
  margin: 0 4px 6px !important;
  color: #17201f;
  font-size: clamp(1.45rem, 2.2vw, 2rem) !important;
  line-height: .95 !important;
  letter-spacing: -.035em;
  font-weight: 950;
}

.ticket-inbox-view .work-order-tools::before {
  margin-top: 6px;
}


/* Assignment filter button group in left sidebar */
.assignment-filter-buttons {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(20,45,40,.08);
  border-radius: 18px;
  background: rgba(248,250,249,.72);
}

.assignment-filter-buttons::before {
  content: "Assigned";
  color: #1f6f59;
  font-size: .64rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.assignment-filter-button {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(20,45,40,.1);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,.86);
  color: #17201f;
  font-size: .78rem;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.assignment-filter-button.active {
  border-color: rgba(31,111,89,.28);
  background: #1f6f59;
  color: #fff;
  box-shadow: 0 8px 18px rgba(31,111,89,.16);
}

.assignment-filter-button:focus-visible {
  outline: 3px solid rgba(31,111,89,.28);
  outline-offset: 2px;
}


/* Proper compact Only open switch */
.ticket-inbox-view .work-order-check {
  position: relative !important;
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  align-items: center !important;
  gap: 10px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}

.ticket-inbox-view .work-order-check input {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: relative !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 24px !important;
  min-height: 24px !important;
  margin: 0 !important;
  border: 1px solid rgba(20,45,40,.18) !important;
  border-radius: 999px !important;
  background: #dfe6e3 !important;
  box-shadow: inset 0 1px 3px rgba(20,40,35,.16) !important;
  cursor: pointer;
}

.ticket-inbox-view .work-order-check input::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(20,40,35,.24);
  transition: transform .16s ease;
}

.ticket-inbox-view .work-order-check input:checked {
  border-color: rgba(31,111,89,.42) !important;
  background: #1f6f59 !important;
}

.ticket-inbox-view .work-order-check input:checked::before {
  transform: translateX(16px);
}

.ticket-inbox-view .work-order-check input:focus-visible {
  outline: 3px solid rgba(31,111,89,.28) !important;
  outline-offset: 2px !important;
}


/* Readable work-order detail overview */
.work-order-dialog {
  width: min(1120px, calc(100% - 28px)) !important;
  padding: 22px !important;
  background: #fbfcfc !important;
}

.work-order-detail-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 18px !important;
  margin: 0 0 16px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid rgba(20,45,40,.08);
}

.work-order-detail-header h2 {
  max-width: 780px;
  font-size: clamp(1.75rem, 4vw, 3.2rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -.035em;
}

.ticket-summary-card {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(360px, 1.1fr);
  gap: 14px;
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid rgba(31,111,89,.14);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(237,245,242,.94), rgba(255,255,255,.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 14px 34px rgba(20,40,35,.06);
}

.ticket-summary-main {
  display: grid;
  align-content: start;
  gap: 8px;
}

.ticket-summary-number {
  width: max-content;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(31,111,89,.1);
  color: #1f6f59;
  font-size: .78rem;
  font-weight: 900;
}

.ticket-summary-main h3 {
  margin: 0;
  color: #17201f;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.03;
  letter-spacing: -.025em;
}

.ticket-summary-main p:last-child {
  margin: 0;
  color: #56645f;
  font-size: .95rem;
  font-weight: 720;
  line-height: 1.38;
}

.ticket-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ticket-summary-grid article {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(20,45,40,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.76);
}

.ticket-summary-grid span {
  color: #1f6f59;
  font-size: .62rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ticket-summary-grid strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #17201f;
  font-size: .9rem;
  font-weight: 900;
  white-space: nowrap;
}

.work-order-dialog details {
  overflow: hidden;
  border-radius: 16px !important;
  background: rgba(255,255,255,.72) !important;
}

.work-order-dialog summary {
  background: rgba(237,243,241,.72);
  color: #17201f;
}

@media (max-width: 900px) {
  .work-order-detail-header,
  .ticket-summary-card {
    grid-template-columns: 1fr !important;
  }

  .work-order-detail-actions {
    justify-items: stretch;
    max-width: 100% !important;
  }

  .ticket-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ticket-summary-grid {
    grid-template-columns: 1fr;
  }
}


/* Ticket status quick controls */
.ticket-status-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid rgba(20,45,40,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 24px rgba(20,40,35,.05);
}

.ticket-status-controls > span {
  padding-left: 8px;
  color: #1f6f59;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticket-status-controls > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ticket-status-controls button {
  min-height: 34px !important;
  border: 1px solid rgba(20,45,40,.1);
  border-radius: 999px;
  padding: 7px 12px;
  background: #f4f7f6;
  color: #17201f;
  font-size: .76rem;
  font-weight: 900;
  cursor: pointer;
}

.ticket-status-controls button.active {
  border-color: rgba(31,111,89,.32);
  background: #1f6f59;
  color: #fff;
  box-shadow: 0 8px 18px rgba(31,111,89,.16);
}

.ticket-status-controls button:focus-visible {
  outline: 3px solid rgba(31,111,89,.28);
  outline-offset: 2px;
}

.status-active {
  background: #dff5ee;
  color: #17624f;
}

@media (max-width: 620px) {
  .ticket-status-controls {
    align-items: stretch;
    flex-direction: column;
    border-radius: 18px;
  }

  .ticket-status-controls > div,
  .ticket-status-controls button {
    width: 100%;
  }
}


/* Employee assignment avatars */
.employee-assignee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  color: #17201f;
  font-weight: 850;
}

.employee-avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--employee-color, #1f6f59);
  color: #fff;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 5px 12px rgba(20,40,35,.12);
}

.employee-assignee.icon-only {
  gap: 0;
  justify-content: center;
}

.work-order-table .employee-assignee.icon-only {
  width: 28px;
}

.assignee-empty {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: #75827e;
  font-weight: 800;
}

.ticket-summary-assignee strong {
  display: block;
  min-width: 0;
}

.ticket-summary-assignee .employee-assignee {
  width: 100%;
}

.ticket-summary-assignee .employee-assignee > span:last-child,
.work-order-table .employee-assignee > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-summary-assignee .employee-avatar {
  width: 30px;
  min-width: 30px;
  height: 30px;
}


/* Signed-in employee avatar */
.session-user-avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--employee-color, #1f6f59);
  color: #fff;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 7px 16px rgba(20,40,35,.14);
}

.ticket-inbox-view .work-order-heading-actions .session-user-avatar {
  margin-left: 2px;
}

.login-session-bar .session-user-avatar {
  width: 32px;
  min-width: 32px;
  height: 32px;
}


/* Color-coded ticket status buttons */
.ticket-status-controls button[data-order-status="New"] {
  border-color: rgba(35, 104, 170, .22);
  background: #eaf4ff;
  color: #155b9d;
}

.ticket-status-controls button[data-order-status="In Progress"] {
  border-color: rgba(176, 110, 23, .24);
  background: #fff2dd;
  color: #8a4f0a;
}

.ticket-status-controls button[data-order-status="Active"] {
  border-color: rgba(31, 111, 89, .24);
  background: #e3f7ef;
  color: #17624f;
}

.ticket-status-controls button[data-order-status="Closed"] {
  border-color: rgba(90, 96, 94, .24);
  background: #eef1ef;
  color: #4d5653;
}

.ticket-status-controls button[data-order-status="New"].active {
  border-color: #1f6fb2;
  background: #1f6fb2;
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 111, 178, .18);
}

.ticket-status-controls button[data-order-status="In Progress"].active {
  border-color: #c97814;
  background: #c97814;
  color: #fff;
  box-shadow: 0 8px 18px rgba(201, 120, 20, .18);
}

.ticket-status-controls button[data-order-status="Active"].active {
  border-color: #1f6f59;
  background: #1f6f59;
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 111, 89, .18);
}

.ticket-status-controls button[data-order-status="Closed"].active {
  border-color: #5b6461;
  background: #5b6461;
  color: #fff;
  box-shadow: 0 8px 18px rgba(60, 70, 66, .16);
}


/* Work order report details */
.work-order-report {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(31,111,89,.14);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(246,249,248,.96), rgba(255,255,255,.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 14px 34px rgba(20,40,35,.045);
}

.work-order-report article {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 104px;
  padding: 12px;
  border: 1px solid rgba(20,45,40,.08);
  border-radius: 15px;
  background: rgba(255,255,255,.78);
}

.work-order-report .report-wide {
  grid-column: span 2;
}

.work-order-report span {
  color: #1f6f59;
  font-size: .64rem;
  font-weight: 950;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.work-order-report h3,
.work-order-report strong {
  margin: 0;
  min-width: 0;
  color: #17201f;
  font-size: .98rem;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.work-order-report h3 {
  font-size: clamp(1.08rem, 2.2vw, 1.45rem);
  letter-spacing: -.02em;
}

.work-order-report p {
  margin: 0;
  color: #5d6966;
  font-size: .86rem;
  font-weight: 720;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.work-order-dialog form[data-order-detail-form] {
  display: grid;
  gap: 10px;
}

.work-order-dialog form[data-order-detail-form] details[open] {
  border-color: rgba(31,111,89,.16) !important;
}

@media (max-width: 980px) {
  .work-order-report {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .work-order-report,
  .work-order-report .report-wide {
    grid-template-columns: 1fr;
    grid-column: auto;
  }
}


/* Rounded square yes/no toggle cards */
.work-order-dialog [data-yada-details] .detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  align-items: stretch !important;
}

.work-order-dialog [data-yada-details] .toggle-field,
.work-order-intake-dialog .toggle-field {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 14px !important;
  min-height: 112px !important;
  padding: 14px !important;
  border: 1px solid rgba(20,45,40,.1) !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(239,246,243,.74)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 8px 20px rgba(20,40,35,.045) !important;
  overflow: visible !important;
}

.work-order-dialog [data-yada-details] .toggle-field > span:first-child,
.work-order-intake-dialog .toggle-field > span:first-child {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: auto !important;
  color: #1f6f59 !important;
  font-size: clamp(.58rem, .72vw, .72rem) !important;
  line-height: 1.15 !important;
  font-weight: 950 !important;
  letter-spacing: .035em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.work-order-dialog [data-yada-details] .role-locked-field > span:first-child::after,
.work-order-intake-dialog .role-locked-field > span:first-child::after {
  display: inline-flex !important;
  align-items: center !important;
  margin-left: 6px !important;
  color: #8a6a19 !important;
  font-size: .68rem !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  text-transform: none !important;
  vertical-align: baseline !important;
}

.work-order-dialog [data-yada-details] .toggle-control,
.work-order-intake-dialog .toggle-control {
  align-self: flex-end !important;
  display: block !important;
  width: 54px !important;
  min-width: 54px !important;
  height: 32px !important;
  min-height: 32px !important;
  margin-top: auto !important;
  border: 1px solid rgba(20,45,40,.08) !important;
  border-radius: 999px !important;
  background: #e0e8e5 !important;
}

.work-order-dialog [data-yada-details] .toggle-control::before,
.work-order-intake-dialog .toggle-control::before {
  top: 3px !important;
  left: 3px !important;
  width: 24px !important;
  height: 24px !important;
}

.work-order-dialog [data-yada-details] .toggle-control::after,
.work-order-intake-dialog .toggle-control::after {
  display: none !important;
}

.work-order-dialog [data-yada-details] .toggle-field > input[type="checkbox"]:checked + .toggle-control,
.work-order-intake-dialog .toggle-field > input[type="checkbox"]:checked + .toggle-control {
  background: #34c759 !important;
}

.work-order-dialog [data-yada-details] .toggle-field > input[type="checkbox"]:checked + .toggle-control::before,
.work-order-intake-dialog .toggle-field > input[type="checkbox"]:checked + .toggle-control::before {
  transform: translateX(22px) !important;
}

@media (max-width: 560px) {
  .work-order-dialog [data-yada-details] .detail-grid {
    grid-template-columns: 1fr !important;
  }

  .work-order-dialog [data-yada-details] .toggle-field,
  .work-order-intake-dialog .toggle-field {
    min-height: 96px !important;
  }
}


/* Compact ticket sheet pass */
.compact-ticket-stats {
  grid-template-columns: 1fr !important;
  margin-bottom: 10px !important;
  padding: 10px !important;
}

.compact-ticket-stats .ticket-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

.compact-ticket-stats .ticket-summary-grid article {
  min-height: 58px !important;
  padding: 8px 9px !important;
}

.compact-ticket-stats .ticket-summary-grid strong {
  font-size: .78rem !important;
}

.work-order-report {
  grid-template-columns: 1.35fr 1fr 1fr !important;
  gap: 8px !important;
  padding: 10px !important;
  margin-bottom: 10px !important;
}

.work-order-report article {
  min-height: 82px !important;
  padding: 10px !important;
  gap: 4px !important;
}

.work-order-report .report-wide {
  grid-column: span 1 !important;
}

.work-order-report article:first-child,
.work-order-report article:last-child {
  grid-column: span 3 !important;
  min-height: 72px !important;
}

.work-order-report h3 {
  font-size: clamp(1rem, 1.8vw, 1.28rem) !important;
}

.work-order-report strong {
  font-size: .86rem !important;
}

.work-order-report p {
  font-size: .78rem !important;
  line-height: 1.28 !important;
}

.work-order-dialog form[data-order-detail-form] {
  gap: 8px !important;
}

.work-order-dialog form[data-order-detail-form] > details {
  margin: 0 !important;
}

.work-order-dialog [data-yada-details] summary {
  color: #1f6f59 !important;
  font-size: .78rem !important;
  font-weight: 950 !important;
}

.work-order-dialog [data-yada-details]:not([open]) {
  background: rgba(255,255,255,.55) !important;
}

@media (max-width: 980px) {
  .compact-ticket-stats .ticket-summary-grid,
  .work-order-report {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .work-order-report article:first-child,
  .work-order-report article:last-child {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 560px) {
  .compact-ticket-stats .ticket-summary-grid,
  .work-order-report {
    grid-template-columns: 1fr !important;
  }
}


/* Ticket detail modal action polish */
.work-order-dialog {
  position: relative !important;
  padding: 22px 24px 24px !important;
  border-radius: 22px !important;
}

.work-order-dialog-close {
  position: sticky !important;
  top: 0 !important;
  z-index: 30 !important;
  display: flex !important;
  justify-content: flex-end !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  background: transparent !important;
}

.work-order-dialog-close button {
  pointer-events: auto !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  transform: translate(-2px, 2px) !important;
  border: 1px solid rgba(20,45,40,.14) !important;
  border-radius: 999px !important;
  padding: 0 !important;
  background: rgba(255,255,255,.92) !important;
  color: #17201f !important;
  font-size: 1.45rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  box-shadow: 0 10px 24px rgba(20,40,35,.12), inset 0 1px 0 rgba(255,255,255,.9) !important;
  backdrop-filter: blur(12px) !important;
  cursor: pointer !important;
}

.work-order-dialog-close button:hover {
  background: #edf3f1 !important;
}

.work-order-detail-header {
  align-items: flex-start !important;
  padding-right: 54px !important;
}

.work-order-detail-actions {
  display: grid !important;
  justify-items: end !important;
  gap: 10px !important;
  max-width: min(520px, 100%) !important;
}

.detail-assignment-panel {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) auto !important;
  align-items: end !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 10px !important;
  border: 1px solid rgba(20,45,40,.1) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.78) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 20px rgba(20,40,35,.045) !important;
}

.detail-assignment-panel label {
  display: grid !important;
  min-width: 0 !important;
  gap: 5px !important;
}

.detail-assignment-panel span {
  color: #1f6f59 !important;
  font-size: .62rem !important;
  font-weight: 950 !important;
  letter-spacing: .045em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.detail-assignment-panel select {
  height: 38px !important;
  min-height: 38px !important;
  border: 1px solid rgba(20,45,40,.14) !important;
  border-radius: 12px !important;
  padding: 0 34px 0 12px !important;
  background-color: #fff !important;
  color: #17201f !important;
  font-size: .86rem !important;
  font-weight: 760 !important;
}

.detail-assignment-panel [data-order-assign-self] {
  height: 38px !important;
  min-height: 38px !important;
  border-radius: 999px !important;
  padding: 0 14px !important;
  background: #edf3f1 !important;
  color: #17201f !important;
  white-space: nowrap !important;
}

.detail-action-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  width: 100% !important;
}

.detail-action-buttons button {
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 999px !important;
  padding: 0 12px !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
  background: rgba(237,243,241,.92) !important;
  color: #17201f !important;
}

.detail-action-buttons button:disabled {
  opacity: .42 !important;
  color: #7f8986 !important;
  background: rgba(237,241,239,.55) !important;
}

.detail-action-buttons .danger-action {
  border-color: rgba(178,74,74,.22) !important;
  background: #fff2f2 !important;
  color: #a33b3b !important;
}

@media (max-width: 900px) {
  .work-order-detail-header {
    padding-right: 0 !important;
  }

  .work-order-detail-actions {
    justify-items: stretch !important;
    max-width: 100% !important;
  }
}

@media (max-width: 560px) {
  .detail-assignment-panel {
    grid-template-columns: 1fr !important;
  }

  .detail-action-buttons button {
    flex: 1 1 calc(50% - 8px) !important;
  }
}


/* Ticket status dropdown replaces large status strip */
.ticket-status-controls {
  display: none !important;
}

.detail-status-select {
  display: inline-grid !important;
  grid-template-columns: auto auto !important;
  align-items: center !important;
  gap: 8px !important;
  width: fit-content !important;
  margin-top: 8px !important;
  border: 1px solid rgba(20,45,40,.12) !important;
  border-radius: 999px !important;
  padding: 4px 6px 4px 10px !important;
  background: rgba(237,243,241,.82) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86) !important;
}

.detail-status-select > span {
  color: #1f6f59 !important;
  font-size: .62rem !important;
  font-weight: 950 !important;
  letter-spacing: .045em !important;
  text-transform: uppercase !important;
}

.detail-status-select select {
  width: auto !important;
  min-width: 118px !important;
  min-height: 30px !important;
  height: 30px !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0 28px 0 10px !important;
  color: #17201f !important;
  background-color: rgba(255,255,255,.72) !important;
  font: inherit !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.detail-status-select.status-new select {
  background-color: #dcecff !important;
  color: #145b9a !important;
}

.detail-status-select.status-in-progress select,
.detail-status-select.status-assigned select {
  background-color: #ffe6cf !important;
  color: #9c4c08 !important;
}

.detail-status-select.status-active select {
  background-color: #d9f4e3 !important;
  color: #176a39 !important;
}

.detail-status-select.status-closed select,
.detail-status-select.status-completed select {
  background-color: #e5e7e6 !important;
  color: #555 !important;
}

.detail-status-select.status-waiting-parts select,
.detail-status-select.status-waiting-contractor select {
  background-color: #fff3bf !important;
  color: #755b00 !important;
}


/* Left navigation inventory tracker */
.sidebar-nav-button {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
  min-height: 42px !important;
  border: 1px solid rgba(31,111,89,.18) !important;
  border-radius: 16px !important;
  padding: 8px 10px !important;
  background: linear-gradient(135deg, rgba(31,111,89,.12), rgba(255,255,255,.88)) !important;
  color: #17201f !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 8px 18px rgba(20,40,35,.045) !important;
  cursor: pointer !important;
  text-align: left !important;
}

.sidebar-nav-button span {
  display: grid !important;
  place-items: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.82) !important;
  font-size: .95rem !important;
}

.sidebar-nav-button strong {
  font-size: .8rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.sidebar-nav-button:hover {
  border-color: rgba(31,111,89,.34) !important;
  transform: translateY(-1px) !important;
}

.sidebar-nav-button:focus-visible {
  outline: 3px solid rgba(31,111,89,.26) !important;
  outline-offset: 2px !important;
}

.inventory-dialog {
  width: min(680px, calc(100% - 28px)) !important;
  border: 0 !important;
  border-radius: 24px !important;
  padding: 22px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 28px 80px rgba(20,40,35,.22) !important;
}

.inventory-tracker-panel {
  display: grid !important;
  gap: 16px !important;
  padding-top: 8px !important;
}

.inventory-header h3 {
  margin: 4px 0 !important;
  color: #17201f !important;
  font-size: clamp(1.7rem, 4vw, 2.5rem) !important;
  line-height: .95 !important;
  letter-spacing: -.035em !important;
}

.inventory-header p:last-child {
  margin: 0 !important;
  color: #5f6b68 !important;
  font-weight: 750 !important;
}

.inventory-summary-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.inventory-summary-grid article,
.inventory-list > div {
  border: 1px solid rgba(20,45,40,.1) !important;
  border-radius: 18px !important;
  padding: 14px !important;
  background: #f8faf9 !important;
}

.inventory-summary-grid strong {
  display: block !important;
  color: #1f6f59 !important;
  font-size: 1.7rem !important;
  line-height: 1 !important;
}

.inventory-summary-grid span,
.inventory-list span {
  color: #66706e !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
}

.inventory-list {
  display: grid !important;
  gap: 8px !important;
}

.inventory-list > div {
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
  align-items: center !important;
}

.inventory-list strong {
  color: #17201f !important;
  font-weight: 950 !important;
}

@media (max-width: 560px) {
  .inventory-summary-grid {
    grid-template-columns: 1fr !important;
  }
  .inventory-list > div {
    display: grid !important;
  }
}


/* Inventory main content mode */
.sidebar-mode-buttons {
  display: grid !important;
  gap: 8px !important;
}

.sidebar-nav-button.active {
  border-color: rgba(31,111,89,.34) !important;
  background: #1f6f59 !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(31,111,89,.18) !important;
}

.sidebar-nav-button.active span {
  background: rgba(255,255,255,.2) !important;
}

.inventory-main-view {
  grid-column: 2 !important;
  min-width: 0 !important;
  min-height: min(58vh, 680px) !important;
  max-height: min(72vh, 760px) !important;
  overflow: hidden !important;
  border: 1px solid rgba(20,45,40,.1) !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,249,.92)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 42px rgba(20,40,35,.06) !important;
}

.inventory-main-view[hidden] {
  display: none !important;
}

.inventory-main-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 20px 20px 14px !important;
  border-bottom: 1px solid rgba(20,45,40,.08) !important;
  background: rgba(255,255,255,.9) !important;
  backdrop-filter: blur(14px) !important;
}

.inventory-main-header h3 {
  margin: 4px 0 !important;
  color: #17201f !important;
  font-size: clamp(1.65rem, 3vw, 2.65rem) !important;
  line-height: .95 !important;
  letter-spacing: -.035em !important;
}

.inventory-main-header p:last-child {
  margin: 0 !important;
  max-width: 560px !important;
  color: #5f6b68 !important;
  font-weight: 750 !important;
}

.inventory-main-header > span {
  flex: 0 0 auto !important;
  border-radius: 999px !important;
  padding: 8px 12px !important;
  background: #edf3f1 !important;
  color: #1f6f59 !important;
  font-size: .76rem !important;
  font-weight: 950 !important;
}

.inventory-option-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
  gap: 14px !important;
  max-height: calc(min(72vh, 760px) - 112px) !important;
  overflow: auto !important;
  padding: 18px !important;
}

.inventory-option-grid button {
  aspect-ratio: 1 / 1 !important;
  display: grid !important;
  align-content: space-between !important;
  justify-items: start !important;
  gap: 10px !important;
  border: 1px solid rgba(20,45,40,.1) !important;
  border-radius: 24px !important;
  padding: 16px !important;
  background: rgba(255,255,255,.84) !important;
  color: #17201f !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 12px 28px rgba(20,40,35,.055) !important;
  text-align: left !important;
  cursor: pointer !important;
}

.inventory-option-grid button:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(31,111,89,.28) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 18px 32px rgba(20,40,35,.09) !important;
}

.inventory-option-grid button:focus-visible {
  outline: 3px solid rgba(31,111,89,.28) !important;
  outline-offset: 3px !important;
}

.inventory-option-grid span {
  display: grid !important;
  place-items: center !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(31,111,89,.14), rgba(255,255,255,.9)) !important;
  font-size: 1.35rem !important;
}

.inventory-option-grid strong {
  display: block !important;
  align-self: end !important;
  font-size: clamp(1rem, 1.5vw, 1.22rem) !important;
  line-height: 1 !important;
  letter-spacing: -.02em !important;
  font-weight: 950 !important;
}

.inventory-option-grid small {
  color: #66706e !important;
  font-size: .76rem !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
}

@media (max-width: 900px) {
  .inventory-main-view {
    grid-column: 1 !important;
    max-height: none !important;
  }
  .inventory-option-grid {
    max-height: none !important;
  }
}

@media (max-width: 560px) {
  .inventory-main-header {
    display: grid !important;
  }
  .inventory-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 12px !important;
  }
  .inventory-option-grid button {
    border-radius: 18px !important;
    padding: 12px !important;
  }
}


/* Ensure ticket inbox is fully hidden while Inventory Tracker is active */
.ticket-inbox-view[data-main-mode="inventory"] .work-order-table-wrap,
.ticket-inbox-view .work-order-table-wrap[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* Inventory category drill-down items */
.inventory-items-view {
  max-height: calc(min(72vh, 760px) - 1px) !important;
  overflow: auto !important;
}

.inventory-items-view[hidden],
.inventory-option-grid[hidden] {
  display: none !important;
}

.inventory-items-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 16px 18px !important;
  border-bottom: 1px solid rgba(20,45,40,.08) !important;
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(14px) !important;
}

.inventory-items-header button {
  min-height: 38px !important;
  border: 1px solid rgba(20,45,40,.12) !important;
  border-radius: 999px !important;
  padding: 0 12px !important;
  background: #edf3f1 !important;
  color: #17201f !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.inventory-items-header h4 {
  margin: 3px 0 !important;
  color: #17201f !important;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem) !important;
  line-height: .95 !important;
  letter-spacing: -.03em !important;
}

.inventory-items-header p:last-child {
  margin: 0 !important;
  color: #5f6b68 !important;
  font-weight: 750 !important;
}

.inventory-items-header > span {
  border-radius: 999px !important;
  padding: 8px 12px !important;
  background: #edf3f1 !important;
  color: #1f6f59 !important;
  font-size: .76rem !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

.inventory-item-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  gap: 14px !important;
  padding: 18px !important;
}

.inventory-items-search {
  display: block !important;
  padding: 16px 18px 0 !important;
}

.inventory-items-search input {
  width: min(520px, 100%) !important;
  min-height: 46px !important;
  border: 1px solid rgba(20,45,40,.14) !important;
  border-radius: 999px !important;
  padding: 0 18px !important;
  background: #fff !important;
  color: #17201f !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 10px 26px rgba(20,40,35,.06) !important;
  font: inherit !important;
  font-weight: 850 !important;
}

.inventory-items-search input::placeholder {
  color: #7b8581 !important;
}

.inventory-item-grid button {
  position: relative !important;
  aspect-ratio: 1 / 1 !important;
  display: grid !important;
  align-content: space-between !important;
  justify-items: start !important;
  gap: 8px !important;
  border: 1px solid rgba(20,45,40,.1) !important;
  border-radius: 24px !important;
  padding: 34px 14px 14px !important;
  background: #fff !important;
  color: #17201f !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 12px 28px rgba(20,40,35,.055) !important;
  text-align: left !important;
  cursor: pointer !important;
}

.inventory-item-grid button > span {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 999px !important;
  box-shadow: 0 0 0 5px rgba(20,45,40,.045), inset 0 1px 0 rgba(255,255,255,.55) !important;
}

.inventory-item-grid button.availability-available > span,
.inventory-item-grid button.availability-available {
  background-color: #fff !important;
}
.inventory-item-grid button.availability-available > span { background: #2f9e62 !important; }

.inventory-item-grid button.availability-low,
.inventory-item-grid button.availability-low > span {
  background-color: #fff !important;
}
.inventory-item-grid button.availability-low > span { background: #d99a19 !important; }

.inventory-item-grid button.availability-out,
.inventory-item-grid button.availability-out > span {
  background-color: #fff !important;
}
.inventory-item-grid button.availability-out > span { background: #c94848 !important; }

.inventory-item-grid button.availability-unknown,
.inventory-item-grid button.availability-unknown > span {
  background-color: #fff !important;
}
.inventory-item-grid button.availability-unknown > span { background: #87918e !important; }

.inventory-empty-results {
  grid-column: 1 / -1 !important;
  margin: 0 !important;
  border: 1px dashed rgba(20,45,40,.16) !important;
  border-radius: 18px !important;
  padding: 18px !important;
  background: #fff !important;
  color: #5f6b68 !important;
  font-weight: 850 !important;
}

.inventory-item-grid strong {
  font-size: clamp(.96rem, 1.4vw, 1.16rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -.02em !important;
  font-weight: 950 !important;
}

.inventory-item-grid small,
.inventory-item-grid em {
  color: #5f6b68 !important;
  font-size: .74rem !important;
  font-style: normal !important;
  font-weight: 800 !important;
  line-height: 1.22 !important;
}

.inventory-item-grid em {
  opacity: .78 !important;
}

.inventory-item-grid button:hover {
  transform: translateY(-2px) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 18px 32px rgba(20,40,35,.09) !important;
}

@media (max-width: 620px) {
  .inventory-items-header {
    grid-template-columns: 1fr !important;
  }
  .inventory-item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 12px !important;
  }
  .inventory-item-grid button {
    border-radius: 18px !important;
    padding: 12px !important;
  }
}


/* Inventory item cells with availability controls */
.inventory-cell-list {
  display: grid !important;
  gap: 10px !important;
  padding: 14px 18px 18px !important;
}

.inventory-cell {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 76px !important;
  border: 1px solid rgba(20,45,40,.1) !important;
  border-radius: 18px !important;
  padding: 12px !important;
  background: rgba(255,255,255,.88) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 22px rgba(20,40,35,.045) !important;
}

.inventory-cell .availability-dot {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55) !important;
}

.inventory-cell.availability-available {
  background: #f0fbf4 !important;
}
.inventory-cell.availability-available .availability-dot { background: #2f9e62 !important; }

.inventory-cell.availability-low {
  background: #fff8e3 !important;
}
.inventory-cell.availability-low .availability-dot { background: #d99a19 !important; }

.inventory-cell.availability-out {
  background: #fff0f0 !important;
}
.inventory-cell.availability-out .availability-dot { background: #c94848 !important; }

.inventory-cell.availability-unknown {
  background: #f4f7f6 !important;
}
.inventory-cell.availability-unknown .availability-dot { background: #87918e !important; }

.inventory-cell-copy {
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
}

.inventory-cell-copy strong {
  color: #17201f !important;
  font-size: clamp(.98rem, 1.5vw, 1.18rem) !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
}

.inventory-cell-copy small {
  color: #5f6b68 !important;
  font-size: .76rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.inventory-availability-select {
  display: block !important;
  justify-self: end !important;
  min-width: 132px !important;
}

.inventory-availability-select select {
  width: 100% !important;
  min-height: 34px !important;
  border: 1px solid rgba(20,45,40,.12) !important;
  border-radius: 999px !important;
  padding: 0 30px 0 12px !important;
  background: #fff !important;
  color: #17201f !important;
  font: inherit !important;
  font-size: .76rem !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 6px 14px rgba(20,40,35,.045) !important;
}

.inventory-availability-select select:focus-visible {
  outline: 3px solid rgba(31,111,89,.24) !important;
  outline-offset: 2px !important;
}

@media (max-width: 760px) {
  .inventory-cell {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }
  .inventory-availability-select {
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
    width: 100% !important;
  }
}


/* Full-page Inventory detail list */
.ticket-inbox-view[data-main-mode="inventory"] {
  grid-auto-rows: auto minmax(0, 1fr) !important;
}

.ticket-inbox-view[data-main-mode="inventory"] .inventory-main-view {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  min-height: calc(100vh - 280px) !important;
  max-height: none !important;
  height: 100% !important;
  overflow: hidden !important;
}

.ticket-inbox-view[data-main-mode="inventory"] .inventory-items-view:not([hidden]) {
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  min-height: 0 !important;
  max-height: none !important;
  height: 100% !important;
  overflow: hidden !important;
}

.ticket-inbox-view[data-main-mode="inventory"] .inventory-cell-list {
  min-height: 0 !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  align-content: start !important;
  padding: 14px 18px 24px !important;
}

.ticket-inbox-view[data-main-mode="inventory"] .inventory-items-header {
  position: static !important;
}

.ticket-inbox-view[data-main-mode="inventory"] .inventory-items-search {
  padding: 12px 18px 10px !important;
  background: rgba(255,255,255,.88) !important;
  border-bottom: 1px solid rgba(20,45,40,.07) !important;
}

.ticket-inbox-view[data-main-mode="inventory"] .inventory-cell {
  width: 100% !important;
}

@media (max-width: 900px) {
  .ticket-inbox-view[data-main-mode="inventory"] .inventory-main-view {
    min-height: 620px !important;
  }
}


/* Inventory cells stay white; availability uses indicators only */
.inventory-cell,
.inventory-cell.availability-available,
.inventory-cell.availability-low,
.inventory-cell.availability-out,
.inventory-cell.availability-unknown {
  background: rgba(255,255,255,.94) !important;
}


/* Compact inline Inventory detail search */
.inventory-items-header {
  grid-template-columns: auto minmax(220px, 1fr) minmax(180px, 320px) auto !important;
}

.inventory-items-header .widget-category {
  display: none !important;
}

.inventory-items-header .inventory-items-search {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.inventory-items-header .inventory-items-search input {
  width: 100% !important;
  min-height: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  padding: 0 12px !important;
  font-size: .78rem !important;
  font-weight: 850 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 6px 16px rgba(20,40,35,.045) !important;
}

.ticket-inbox-view[data-main-mode="inventory"] .inventory-items-search {
  padding: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
}

@media (max-width: 760px) {
  .inventory-items-header {
    grid-template-columns: 1fr !important;
  }
  .inventory-items-header .inventory-items-search input {
    width: 100% !important;
  }
}


/* Remove Inventory Tracker overview banner */
.inventory-main-view > .inventory-main-header {
  display: none !important;
}

.inventory-option-grid {
  max-height: none !important;
}


/* Inventory availability marker as small top-left status light */
.inventory-cell {
  position: relative !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  padding: 14px 14px 14px 40px !important;
}

.inventory-cell .availability-dot {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 999px !important;
  box-shadow: 0 0 0 5px rgba(20,45,40,.045), inset 0 1px 0 rgba(255,255,255,.6) !important;
}

/* Inventory count + availability controls */
.inventory-row-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.inventory-count-stepper {
  display: inline-grid !important;
  grid-template-columns: 30px minmax(34px, auto) 30px !important;
  align-items: center !important;
  min-height: 34px !important;
  border: 1px solid rgba(20,45,40,.12) !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 6px 14px rgba(20,40,35,.045) !important;
  overflow: hidden !important;
}

.inventory-count-stepper button {
  width: 30px !important;
  height: 32px !important;
  border: 0 !important;
  background: transparent !important;
  color: #17201f !important;
  font-size: .92rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.inventory-count-stepper output {
  min-width: 34px !important;
  padding: 0 6px !important;
  color: #17201f !important;
  font-size: .76rem !important;
  font-weight: 950 !important;
  text-align: center !important;
}

.inventory-count-stepper button:focus-visible,
.inventory-availability-select select:focus-visible {
  outline: 3px solid rgba(31,111,89,.24) !important;
  outline-offset: 2px !important;
}

@media (max-width: 760px) {
  .inventory-row-controls {
    grid-column: 1 / -1 !important;
    justify-content: stretch !important;
    flex-wrap: wrap !important;
  }

  .inventory-count-stepper,
  .inventory-availability-select {
    flex: 1 1 150px !important;
  }
}

/* Inventory reusable/consumable selector */
.inventory-type-select {
  display: block !important;
  min-width: 118px !important;
}

.inventory-type-select select {
  width: 100% !important;
  min-height: 34px !important;
  border: 1px solid rgba(20,45,40,.12) !important;
  border-radius: 999px !important;
  padding: 0 30px 0 12px !important;
  background: #fff !important;
  color: #17201f !important;
  font: inherit !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 6px 14px rgba(20,40,35,.045) !important;
}

.inventory-type-select select:focus-visible {
  outline: 3px solid rgba(31,111,89,.24) !important;
  outline-offset: 2px !important;
}

@media (max-width: 760px) {
  .inventory-type-select {
    flex: 1 1 150px !important;
  }
}

/* Typography pass: titles stay bold, labels and controls stay readable */
.work-orders-widget h1,
.work-orders-widget h2,
.work-orders-widget h3,
.work-orders-widget h4,
.login-system-widget h1,
.inventory-main-view h3,
.inventory-items-header h4,
.sidebar-portal-title,
.ticket-summary-main h3,
.work-order-report h3,
.inventory-cell-copy strong,
.inventory-option-grid strong,
.sidebar-nav-button strong {
  font-weight: 900 !important;
}

.work-orders-widget label > span:not(.sr-only),
.work-orders-widget legend,
.work-orders-widget .widget-category,
.work-orders-widget .property-form label span,
.work-orders-widget .detail-status-select > span,
.work-orders-widget .detail-assignment-panel label,
.work-orders-widget .assignment-filter-buttons::before,
.work-orders-widget .work-order-report dt,
.work-orders-widget .ticket-summary-grid span,
.work-orders-widget .inventory-items-header p,
.work-orders-widget .inventory-main-header p,
.work-orders-widget .inventory-cell-copy small,
.work-orders-widget .inventory-option-grid small,
.login-system-widget label span,
.login-system-widget .login-note,
.login-system-widget .login-divider {
  font-weight: 600 !important;
}

.work-orders-widget input,
.work-orders-widget select,
.work-orders-widget textarea,
.work-orders-widget output,
.work-orders-widget small,
.work-orders-widget p:not(.widget-category),
.work-orders-widget .property-tab small,
.work-orders-widget .property-admin-note,
.work-orders-widget .settings-section p,
.work-orders-widget .ticket-summary-main p,
.login-system-widget input,
.login-system-widget p:not(.widget-category) {
  font-weight: 500 !important;
}

.work-orders-widget button,
.work-orders-widget .assignment-filter-button,
.work-orders-widget .work-order-check,
.work-orders-widget .ticket-status-controls button,
.work-orders-widget .inventory-count-stepper button,
.work-orders-widget .inventory-availability-select select,
.work-orders-widget .inventory-type-select select,
.login-system-widget button {
  font-weight: 700 !important;
}

.work-orders-widget .status-pill,
.work-orders-widget .priority-pill,
.work-orders-widget .employee-avatar,
.work-orders-widget .ticket-summary-grid strong,
.work-orders-widget .inventory-summary-grid strong,
.work-orders-widget .work-order-dashboard strong {
  font-weight: 800 !important;
}

/* Final small-label weight correction */
.widget-category,
.login-system-widget .widget-category,
.login-system-widget label > span,
.work-orders-widget label > span:not(.sr-only),
.work-orders-widget .detail-status-select > span,
.work-orders-widget .detail-assignment-panel label,
.work-orders-widget legend {
  font-weight: 600 !important;
}

/* Inventory property and custom location controls */
.inventory-location-controls {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: min(100%, 360px) !important;
}

.inventory-location-controls label {
  display: block !important;
  min-width: 0 !important;
}

.inventory-location-controls label:first-child {
  flex: 0 1 150px !important;
}

.inventory-location-controls label:last-child {
  flex: 1 1 160px !important;
}

.inventory-location-controls select,
.inventory-location-controls input {
  width: 100% !important;
  min-height: 34px !important;
  border: 1px solid rgba(20,45,40,.12) !important;
  border-radius: 999px !important;
  padding: 0 12px !important;
  background: #fff !important;
  color: #17201f !important;
  font: inherit !important;
  font-size: .72rem !important;
  font-weight: 500 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 6px 14px rgba(20,40,35,.045) !important;
}

.inventory-location-controls select {
  padding-right: 30px !important;
  cursor: pointer !important;
}

.inventory-location-controls select:focus-visible,
.inventory-location-controls input:focus-visible {
  outline: 3px solid rgba(31,111,89,.24) !important;
  outline-offset: 2px !important;
}

@media (max-width: 980px) {
  .inventory-row-controls {
    flex-wrap: wrap !important;
  }
  .inventory-location-controls {
    flex: 1 1 100% !important;
    min-width: 100% !important;
  }
}

@media (max-width: 560px) {
  .inventory-location-controls {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}

/* Inventory row visual cleanup */
.inventory-cell-list {
  gap: 12px !important;
}

.inventory-cell {
  grid-template-columns: minmax(260px, 1fr) minmax(620px, auto) !important;
  align-items: center !important;
  gap: 18px !important;
  min-height: 82px !important;
  padding: 16px 18px 16px 46px !important;
  border-radius: 22px !important;
  border-color: rgba(20,45,40,.08) !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 10px 24px rgba(20,40,35,.035) !important;
}

.inventory-cell .availability-dot {
  top: 21px !important;
  left: 18px !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 999px !important;
  box-shadow: 0 0 0 7px rgba(20,45,40,.045), inset 0 1px 0 rgba(255,255,255,.72) !important;
}

.inventory-cell-copy {
  gap: 4px !important;
}

.inventory-cell-copy strong {
  font-size: clamp(1rem, 1.35vw, 1.22rem) !important;
  line-height: 1.05 !important;
}

.inventory-cell-copy small {
  color: #68736f !important;
  font-size: .78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.inventory-row-controls {
  justify-self: end !important;
  display: grid !important;
  grid-template-columns: minmax(150px, 170px) minmax(170px, 220px) 112px 132px 118px !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px !important;
  border: 1px solid rgba(20,45,40,.08) !important;
  border-radius: 999px !important;
  background: rgba(248,250,249,.78) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95) !important;
}

.inventory-location-controls {
  display: contents !important;
  min-width: 0 !important;
}

.inventory-location-controls label,
.inventory-location-controls label:first-child,
.inventory-location-controls label:last-child,
.inventory-type-select,
.inventory-availability-select {
  min-width: 0 !important;
  width: 100% !important;
  flex: none !important;
}

.inventory-location-controls select,
.inventory-location-controls input,
.inventory-type-select select,
.inventory-availability-select select {
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 999px !important;
  border-color: rgba(20,45,40,.1) !important;
  background-color: #fff !important;
  color: #17201f !important;
  font-size: .74rem !important;
  font-weight: 600 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 4px 10px rgba(20,40,35,.035) !important;
}

.inventory-location-controls input {
  padding-left: 14px !important;
  padding-right: 14px !important;
}

.inventory-location-controls input::placeholder {
  color: #96a09d !important;
  font-weight: 500 !important;
}

.inventory-count-stepper {
  width: 112px !important;
  min-height: 36px !important;
  height: 36px !important;
  grid-template-columns: 34px 44px 34px !important;
  border-color: rgba(20,45,40,.1) !important;
  background: #fff !important;
  border-radius: 999px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 4px 10px rgba(20,40,35,.035) !important;
}

.inventory-count-stepper button {
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  color: #263331 !important;
  font-size: .92rem !important;
  font-weight: 700 !important;
}

.inventory-count-stepper output {
  min-width: 44px !important;
  color: #17201f !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
}

@media (max-width: 1280px) {
  .inventory-cell {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .inventory-row-controls {
    justify-self: stretch !important;
    grid-template-columns: repeat(2, minmax(150px, 1fr)) 112px minmax(120px, 1fr) minmax(110px, 1fr) !important;
    border-radius: 24px !important;
  }
}

@media (max-width: 760px) {
  .inventory-cell {
    padding: 18px 14px 14px 42px !important;
  }

  .inventory-row-controls {
    grid-template-columns: 1fr 1fr !important;
    border-radius: 22px !important;
  }

  .inventory-count-stepper {
    width: 100% !important;
    grid-template-columns: 34px minmax(42px, 1fr) 34px !important;
  }
}

/* Inventory consumable/reusable grouped sections */
.inventory-type-group {
  display: grid !important;
  gap: 10px !important;
  padding: 12px !important;
  border: 1px solid rgba(20,45,40,.075) !important;
  border-radius: 24px !important;
  background: rgba(248,250,249,.72) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9) !important;
}

.inventory-type-group + .inventory-type-group {
  margin-top: 4px !important;
}

.inventory-type-group-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 2px 4px 4px !important;
}

.inventory-type-group-header h5 {
  margin: 0 !important;
  color: #17201f !important;
  font-size: .92rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

.inventory-type-group-header p {
  margin: 4px 0 0 !important;
  color: #6d7774 !important;
  font-size: .72rem !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}

.inventory-type-group-header span {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 34px !important;
  height: 28px !important;
  border-radius: 999px !important;
  background: rgba(31,111,89,.08) !important;
  color: #1f6f59 !important;
  font-size: .74rem !important;
  font-weight: 750 !important;
}

.inventory-type-group-consumable .inventory-type-group-header span {
  background: rgba(31,111,89,.09) !important;
  color: #1f6f59 !important;
}

.inventory-type-group-reusable .inventory-type-group-header span {
  background: rgba(84,94,170,.09) !important;
  color: #5056a0 !important;
}

.inventory-type-group .inventory-empty-results {
  margin: 0 !important;
  padding: 14px !important;
  border: 1px dashed rgba(20,45,40,.12) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.62) !important;
  color: #78827f !important;
  font-size: .78rem !important;
  font-weight: 500 !important;
}

.inventory-property-group {
  display: grid !important;
  gap: 14px !important;
  padding: 16px !important;
  border-radius: 26px !important;
  background: rgba(255,255,255,.76) !important;
  border: 1px solid rgba(20,45,40,.08) !important;
}

.inventory-property-group + .inventory-property-group {
  margin-top: 16px !important;
}

.inventory-property-group-header,
.inventory-location-group-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.inventory-property-group-header h6 {
  margin: 0 !important;
  font-size: clamp(1.35rem, 2vw, 2rem) !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  color: #17201f !important;
}

.inventory-property-group-header span,
.inventory-location-group-header span {
  flex: 0 0 auto !important;
  border-radius: 999px !important;
  background: rgba(31,111,89,.1) !important;
  color: #1f6f59 !important;
  padding: 7px 12px !important;
  font-weight: 800 !important;
  font-size: .82rem !important;
}

.inventory-location-group {
  display: grid !important;
  gap: 10px !important;
  padding: 12px !important;
  border-radius: 22px !important;
  background: rgba(246,249,248,.82) !important;
  border: 1px solid rgba(20,45,40,.06) !important;
}

.inventory-location-group-header strong {
  font-size: 1.02rem !important;
  color: #53615d !important;
  font-weight: 800 !important;
}

/* Work order property group sections */
.work-order-property-group-row td {
  padding: 12px 18px 8px !important;
  background: rgba(248,250,249,.92) !important;
  border-bottom: 0 !important;
}

.work-order-property-group {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(20,45,40,.08) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.84) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95) !important;
}

.property-group-icon {
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 12px !important;
  background: rgba(31,111,89,.08) !important;
  font-size: .9rem !important;
}

.work-order-property-group strong {
  display: block !important;
  color: #17201f !important;
  font-size: .9rem !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
}

.work-order-property-group small {
  display: block !important;
  margin-top: 2px !important;
  color: #68736f !important;
  font-size: .72rem !important;
  font-weight: 500 !important;
}

.work-order-property-group-row + tr td {
  border-top: 0 !important;
}

/* Work order property groups as clean section titles */
.work-order-property-group-row td {
  padding: 20px 20px 8px !important;
  background: #fff !important;
  border-top: 1px solid rgba(20,45,40,.08) !important;
  border-bottom: 0 !important;
}

.work-order-property-group-row:first-child td {
  border-top: 0 !important;
  padding-top: 16px !important;
}

.work-order-property-group {
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.work-order-property-group::before {
  content: '' !important;
  display: inline-block !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: #1f6f59 !important;
  transform: translateY(-1px) !important;
}

.work-order-property-group .property-group-icon {
  display: none !important;
}

.work-order-property-group strong {
  display: inline !important;
  color: #17201f !important;
  font-size: .86rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

.work-order-property-group small {
  display: inline !important;
  margin: 0 !important;
  color: #6c7773 !important;
  font-size: .72rem !important;
  font-weight: 500 !important;
}

.work-order-property-group small::before {
  content: '· ' !important;
}

.work-order-property-group-row + tr td {
  border-top: 0 !important;
}

/* Final property section title treatment */
.work-order-property-group-row td {
  padding: 26px 20px 10px !important;
  background: linear-gradient(180deg, rgba(245,249,247,.9), #fff 72%) !important;
  border-top: 1px solid rgba(20,45,40,.1) !important;
}
.work-order-property-group {
  gap: 8px !important;
  text-transform: none !important;
}
.work-order-property-group strong {
  font-size: 1.02rem !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}
.work-order-property-group small {
  display: none !important;
}
.work-order-property-group::before {
  width: 6px !important;
  height: 22px !important;
  border-radius: 999px !important;
  background: #2f7a63 !important;
  transform: translateY(2px) !important;
}

/* Collapsible work-order property titles */
.work-order-property-group {
  appearance: none !important;
  width: auto !important;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer !important;
  color: #17201f !important;
}
.work-order-property-group:hover strong,
.work-order-property-group:focus-visible strong {
  color: #1f6f59 !important;
}
.work-order-property-group:focus-visible {
  outline: 3px solid rgba(47,122,99,.24) !important;
  outline-offset: 5px !important;
  border-radius: 10px !important;
}
.work-order-property-group::before {
  display: none !important;
}
.property-group-toggle {
  display: inline-grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 999px !important;
  background: rgba(31,111,89,.1) !important;
  color: #1f6f59 !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}
.work-order-property-group-row.is-collapsed td {
  padding-bottom: 18px !important;
}
.work-order-property-group-row.is-collapsed + .work-order-property-group-row td {
  border-top: 1px solid rgba(20,45,40,.1) !important;
}

/* Property sections: title outside, ticket rows inside white card */
.work-order-table-wrap {
  background: transparent !important;
  box-sizing: border-box !important;
}
.work-order-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}
.work-order-property-group-row td {
  padding: 30px 22px 12px !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
}
.work-order-property-group {
  padding: 0 !important;
  gap: 11px !important;
}
.work-order-property-group strong {
  font-size: 1.42rem !important;
  line-height: 1.05 !important;
  font-weight: 850 !important;
}
.property-group-toggle {
  width: 26px !important;
  height: 26px !important;
  background: rgba(31,111,89,.12) !important;
  color: #1f6f59 !important;
}
.work-order-ticket-row td {
  background: #fff !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(20,45,40,.09) !important;
}
.work-order-ticket-row.is-group-first td {
  border-top: 1px solid rgba(20,45,40,.1) !important;
}
.work-order-ticket-row.is-group-first td:first-child {
  border-top-left-radius: 18px !important;
}
.work-order-ticket-row.is-group-first td:last-child {
  border-top-right-radius: 18px !important;
}
.work-order-ticket-row.is-group-last td {
  border-bottom: 1px solid rgba(20,45,40,.1) !important;
}
.work-order-ticket-row.is-group-last td:first-child {
  border-bottom-left-radius: 18px !important;
}
.work-order-ticket-row.is-group-last td:last-child {
  border-bottom-right-radius: 18px !important;
}
.work-order-ticket-row td:first-child {
  border-left: 1px solid rgba(20,45,40,.1) !important;
}
.work-order-ticket-row td:last-child {
  border-right: 1px solid rgba(20,45,40,.1) !important;
}
.work-order-property-group-row.is-collapsed td {
  padding-bottom: 24px !important;
}

.work-order-priority-group-row td {
  padding-top: 18px !important;
}

.work-order-priority-group {
  border-color: rgba(190, 92, 34, .16) !important;
}

.work-order-priority-group .property-group-toggle {
  background: rgba(255, 126, 54, .18) !important;
  color: #a84820 !important;
}

.work-order-priority-group strong {
  color: #17201f !important;
}

.work-order-priority-group small {
  color: #9a5a28 !important;
}

.inventory-cell[role="button"] {
  cursor: pointer;
}

.inventory-cell[role="button"]:focus-visible {
  outline: 4px solid rgba(47,122,99,.22);
  outline-offset: 3px;
}

.inventory-detail-dialog {
  width: min(920px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  border: 0;
  border-radius: 32px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(20, 40, 35, .22);
}

.inventory-detail-dialog::backdrop {
  background: rgba(30, 42, 38, .38);
  backdrop-filter: blur(8px);
}

.inventory-detail-panel {
  display: grid;
  gap: 18px;
  color: #17201f;
}

.inventory-detail-panel > header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding-right: 58px;
}

.inventory-detail-panel h3 {
  margin: 4px 0 6px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: .95;
  font-weight: 850;
}

.inventory-detail-panel p {
  margin: 0;
  color: #66736f;
  font-weight: 500;
  line-height: 1.35;
}

.inventory-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.inventory-detail-grid article,
.inventory-equipment-photos,
.inventory-detail-notes {
  border: 1px solid rgba(20,45,40,.1);
  border-radius: 22px;
  background: rgba(248,250,249,.92);
  padding: 16px;
}

.inventory-detail-grid span,
.inventory-detail-notes dt,
.inventory-photo-upload span {
  display: block;
  color: #2f7a63;
  font-size: .72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.inventory-detail-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 1.3rem;
  font-weight: 850;
}

.inventory-equipment-photos {
  display: grid;
  gap: 14px;
}

.inventory-equipment-photos h4,
.inventory-detail-notes h4 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.inventory-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.inventory-photo-grid figure {
  display: grid;
  place-items: center;
  min-height: 132px;
  margin: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(47,122,99,.12), rgba(245,249,247,.95));
  color: #66736f;
  text-align: center;
  font-weight: 700;
}

.inventory-photo-grid img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 14px;
}

.inventory-photo-grid figure span {
  font-size: 2rem;
}

.inventory-photo-upload {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: fit-content;
  padding: 0 18px;
  border: 1px solid rgba(20,45,40,.12);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.inventory-photo-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.inventory-detail-notes dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.inventory-detail-notes div {
  display: grid;
  gap: 4px;
}

.inventory-detail-notes dd {
  margin: 0;
  color: #17201f;
  font-weight: 600;
}

@media (max-width: 760px) {
  .inventory-detail-grid,
  .inventory-photo-grid {
    grid-template-columns: 1fr;
  }
}
