.ag-page{--ag-green:#14633c;--ag-dark:#14452e;background:#f5f8f4!important;border-color:#dce8dc!important}
.ag-page .ag-header{padding:5px 0 20px;background:transparent;box-shadow:none;border:0;display:flex;align-items:center;justify-content:space-between;gap:15px}
.ag-header h2{font-size:27px;color:var(--ag-dark);margin:0}.ag-header p{color:#6b7b70;margin:2px 0}.ag-eyebrow{font-size:12px;color:#6c806e}.ag-page button{background:var(--ag-green);margin:0;border-radius:9px;padding:10px 16px}.ag-page button.alt{background:#fff;color:var(--ag-green);border:1px solid #cbdccb}.ag-page button:disabled{opacity:.55;cursor:not-allowed}
.ag-message{padding:12px 15px;margin:0 0 15px;background:#e6f3e9;color:#1b6038;border-radius:10px;white-space:pre-wrap}.ag-message.is-error{background:#fff0eb;color:#9c382c}
.ag-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px}.ag-metrics>div{background:white;border:1px solid #dce8dc;border-radius:12px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px}.ag-metrics span{font-size:13px;color:#5a7161}.ag-metrics strong{font-size:27px;color:var(--ag-green)}
.ag-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:18px;align-items:start}.ag-register,.ag-editor,.ag-welcome{min-width:0;background:white;border:1px solid #d9e5d9;border-radius:14px;padding:19px}.ag-section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}.ag-section-title h3{margin:0;color:var(--ag-dark);font-size:19px}
.ag-tabs{display:flex;gap:8px;margin-bottom:12px}.ag-tabs button{flex:1;background:#f3f7f2;color:#4f705a;border:1px solid #d7e4d5}.ag-tabs button[aria-selected=true]{background:var(--ag-green);color:#fff;border-color:var(--ag-green)}
.ag-filters{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr);gap:9px}.ag-page label{display:block;font-size:12px;color:#31503b;margin:0 0 12px;font-weight:700}.ag-page input,.ag-page select,.ag-page textarea{width:100%;min-width:0;border:1px solid #cddacd;border-radius:8px;padding:10px;font:inherit;font-size:14px;color:#223e2c;box-sizing:border-box;background:#fff;margin:5px 0 0}.ag-page input:focus,.ag-page select:focus,.ag-page textarea:focus{outline:2px solid #92ba96;outline-offset:1px}.ag-page input[readonly]{background:#f1f4f0;color:#657267}
.ag-hint{font-size:12px;line-height:1.8;color:#748278;margin:5px 0 12px}.ag-list{display:grid;gap:12px}.ag-ticket{background:#fff;border:1px solid #dce6dc;border-radius:12px;padding:15px}.ag-ticket h3{margin:10px 0 7px;font-size:17px;color:#23452f;overflow-wrap:anywhere}.ag-ticket-head,.ag-ticket-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.ag-number{font-size:12px;letter-spacing:.4px;font-weight:700;background:#e8f0e3;border-radius:6px;padding:4px 9px;color:#2c5b37}.ag-status{font-size:11px;border-radius:30px;padding:4px 10px;background:#f6efd9;color:#826d29}.ag-status-saved{background:#e2f1e6;color:#23623b}.ag-status-archived{background:#edf0ed;color:#617166}.ag-ticket-meta{display:flex;gap:7px 14px;flex-wrap:wrap;font-size:12px;color:#758078}.ag-ticket-cost{font-size:12px;color:#4b6853;margin:9px 0}.ag-ticket-note{font-size:12px;color:#758078;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ag-ticket-bottom{margin-top:12px;padding-top:10px;border-top:1px solid #edf1ec}.ag-ticket-bottom small{font-size:11px;color:#7a877d}.ag-ticket-bottom>div{display:flex;gap:6px}.ag-ticket-bottom button{font-size:12px;padding:7px 10px}.ag-empty{padding:30px 15px;border:1px dashed #cfddcc;border-radius:12px;text-align:center;font-size:13px;color:#748276;line-height:1.9}
.ag-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.ag-form-grid .ag-full{grid-column:1/-1}.ag-page fieldset{border:0;margin:0;padding:0;min-width:0}.ag-page h4{font-size:16px;color:#2d5439;margin:12px 0 2px}.ag-table-wrap{max-width:100%;overflow:auto;margin:10px 0}.ag-page .ag-items-table{min-width:660px;table-layout:fixed;font-size:12px}.ag-items-table th{background:#eaf1e6;color:#42624a;padding:9px 5px}.ag-items-table td{padding:6px 4px;vertical-align:middle}.ag-items-table th:first-child{width:25%}.ag-items-table th:nth-child(2){width:11%}.ag-items-table th:nth-child(3){width:13%}.ag-items-table th:nth-child(4){width:24%}.ag-items-table th:nth-child(5){width:20%}.ag-items-table th:last-child{width:7%}.ag-items-table input{padding:8px 6px;font-size:13px;margin:0}.ag-items-table button{padding:4px 9px!important}.ag-estimate{background:#f8f2df;color:#5d6636;padding:12px;border-radius:8px;margin:12px 0;font-size:12px;line-height:1.8}.ag-actions{display:flex;gap:9px;margin-top:15px}.ag-welcome{text-align:center;padding:50px 25px;line-height:1.9;color:#708374}.ag-welcome>span{font-size:65px;color:#91a763}.ag-welcome h3{font-size:20px;color:#365a3e}.ag-welcome p{font-size:14px}
@media(max-width:1150px){.ag-layout{grid-template-columns:1fr}.ag-editor{grid-row:1}.ag-welcome{display:none}.ag-filters{grid-template-columns:1.5fr 1fr 1fr}}
@media(max-width:650px){.ag-register,.ag-editor{padding:13px}.ag-metrics{grid-template-columns:1fr 1fr;gap:7px}.ag-metrics>div{padding:10px}.ag-metrics span{font-size:11px}.ag-metrics strong{font-size:22px}.ag-filters{grid-template-columns:1fr 1fr}.ag-filters>label:first-child{grid-column:1/-1}.ag-header h2{font-size:23px}.ag-page .ag-header{align-items:flex-start}.ag-page .ag-items-table{min-width:0;display:block}.ag-items-table thead{display:none}.ag-items-table tbody{display:grid;gap:10px}.ag-items-table tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid #dce6da;border-radius:10px;padding:9px}.ag-items-table td{display:block;border:0;min-width:0}.ag-items-table td:first-child{grid-column:1/-1}.ag-items-table td[data-label]::before{content:attr(data-label);display:block;color:#6d8071;font-size:11px;margin-bottom:5px}.ag-form-grid{grid-template-columns:1fr}.ag-form-grid .ag-full{grid-column:auto}.ag-page input,.ag-page select,.ag-page textarea{font-size:16px}.ag-actions{flex-wrap:wrap}.ag-actions button{flex:1}}

.ag-approval-info{font-size:12px;line-height:1.9;padding:9px 11px;background:#f1f7ef;border-radius:8px;color:#45694c}.ag-return-note{font-size:13px;color:#963b2c;background:#fff1e8;border-radius:8px;padding:10px;white-space:pre-wrap}.ag-history-panel{margin-top:18px}.ag-history-entry{border-inline-start:3px solid #69975b;padding:12px 15px;margin:12px 0;background:#f6f9f3;border-radius:8px}.ag-history-entry small{display:block;color:#758478;font-size:11px;margin-top:4px}.ag-history-entry ul{font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.ag-history-entry p{font-size:13px;white-space:pre-wrap}.ag-ticket-bottom>div{flex-wrap:wrap}.agri-only #unEmployeeLevels,.agri-only #unMyTasks,.agri-only .un-global-search{display:none!important}

.ag-final-pricing{margin-top:20px;padding:15px;background:#f0f6ec;border:1px solid #c8d8c0;border-radius:12px}.ag-final-pricing table{width:100%;border-collapse:collapse}.ag-final-pricing th,.ag-final-pricing td{padding:8px;border-bottom:1px solid #c8d8c0;text-align:right}.ag-final-pricing input{min-width:130px;width:100%}.ag-stage-date{display:block;color:#4b7053;margin:5px 0}#agFinalSum{font-weight:bold;text-align:left}

/* Agricultural identity: teal and leaf green, scoped to this department. */
.ag-page{--ag-green:#08738e;--ag-dark:#07546a;--ag-leaf:#66a63d;background:#f3f8f9!important;border-color:#d9e8eb!important}.ag-page .ag-header{border-bottom:1px solid #dae7e9;margin-bottom:20px;padding-bottom:22px}.ag-header h2{color:#075f77}.ag-eyebrow{color:#5c993c}.ag-header p{color:#63828c}.ag-page button{box-shadow:0 3px 8px #08738e12}.ag-page button.alt{color:#086b80;border-color:#cbdfe3}.ag-page button:hover{filter:brightness(.97)}.ag-page button:focus-visible{outline:3px solid #87bd57;outline-offset:3px}.ag-register,.ag-editor,.ag-welcome{border-color:#dce8eb;box-shadow:0 4px 18px #0c617008}.ag-metrics>div{border-color:#dce8eb;border-top:3px solid #08738e}.ag-metrics>div:nth-child(even){border-top-color:#69a740}.ag-metrics strong{color:#08738e}.ag-tabs button{background:#f0f7f8;color:#407884;border-color:#d3e4e7}.ag-tabs button[aria-selected=true]{background:#08738e;border-color:#08738e}.ag-ticket{border-color:#dbe8eb;box-shadow:0 3px 12px #0c617006}.ag-ticket h3{color:#07576a}.ag-number{background:#e9f4f6;color:#076780}.ag-status-saved{background:#edf6e7;color:#427b2c}.ag-page label,.ag-page h4{color:#265f6c}.ag-page input,.ag-page select,.ag-page textarea{border-color:#cddfe2}.ag-page input:focus,.ag-page select:focus,.ag-page textarea:focus{outline-color:#6daec0}.ag-estimate{background:#edf5f7;color:#376470}.ag-final-pricing{background:#f3f8ee;border-color:#d0e2c3}.ag-approval-info{background:#f2f7f8;color:#496e78}.ag-progress{margin:16px 0;padding:16px 12px 10px;background:#f8fbfc;border:1px solid #e0ebee;border-radius:12px}.ag-progress-title{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#1d6374;margin-bottom:18px}.ag-progress-title>span{font-size:10px;color:#687f87}.ag-progress-steps{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 5px;padding:0;margin:0}.ag-progress-steps li{position:relative;display:flex;align-items:center;flex-direction:column;text-align:center;min-width:0;color:#a0afb4}.ag-step-icon{position:relative;display:flex;align-items:center;justify-content:center;width:42px;height:42px;border:1.5px solid #dae3e6;border-radius:14px;background:#f0f4f5;margin-bottom:7px}.ag-step-icon svg{width:23px;height:23px}.ag-progress-steps strong{font-size:10px;line-height:1.6;font-weight:700}.ag-progress-steps small{font-size:8px;line-height:1.8}.ag-progress-steps .ag-step-name,.ag-progress-steps time{font-size:9px;line-height:1.7;color:#71888e;max-width:100%;overflow-wrap:anywhere}.ag-progress-steps .is-complete{color:#4e8d2f}.is-complete .ag-step-icon{color:#528e31;background:#edf6e6;border-color:#a7cc8b}.ag-step-check{position:absolute;bottom:-4px;left:-3px;font-size:9px;width:15px;height:15px;line-height:15px;color:white;background:#66a63d;border-radius:50%;border:1.5px solid white}.ag-progress-steps .is-current{color:#08738e}.is-current .ag-step-icon{color:white;background:#08738e;border-color:#08738e;box-shadow:0 0 0 4px #e0f0f3}.ag-progress-key{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;font-size:9px;padding-top:14px;border-top:1px solid #e5edf0;margin:15px 0 0}.ag-progress-key span:first-child{color:#579431}.ag-progress-key span:nth-child(2){color:#08738e}.ag-progress-key span:last-child{color:#94a7ae}#agProgress .ag-progress{margin-top:0;margin-bottom:20px}@media(min-width:1600px){#agProgress .ag-progress-steps{grid-template-columns:repeat(8,minmax(0,1fr))}}@media(max-width:450px){.ag-progress{padding:13px 7px 9px}.ag-progress-steps{gap:16px 3px}.ag-step-icon{width:36px;height:36px;border-radius:11px}.ag-step-icon svg{width:21px;height:21px}.ag-progress-title{align-items:flex-start}.ag-progress-steps strong{font-size:9px}.ag-progress-steps small{font-size:8px}}

/* Reference dashboard: forest green, warm gold, right navigation. */
body:has(#page-agriculture.active){background:#eef3ef!important}body:has(#page-agriculture.active)>header,body:has(#page-agriculture.active)>.site-header,body:has(#page-agriculture.active)>footer,body:has(#page-agriculture.active) .app-sidebar,body:has(#page-agriculture.active) .topbar,body:has(#page-agriculture.active) #unEmployeeLevels,body:has(#page-agriculture.active) #unMyTasks,body:has(#page-agriculture.active) .un-global-search{display:none!important}body:has(#page-agriculture.active) .app-shell{max-width:none!important;width:100%!important;margin:0!important;padding:0!important;display:block!important}body:has(#page-agriculture.active) .app-content{max-width:none!important;padding:0!important;width:100%!important}body:has(#page-agriculture.active) main{max-width:none!important;padding:0!important;margin:0!important}
.ag-page{--ag-green:#075531;--ag-dark:#073c29;--ag-leaf:#a38222;position:relative!important;border:0!important;border-radius:0!important;background:linear-gradient(125deg,#f7faf8,#edf3ee)!important;padding:94px 238px 26px 24px!important;margin:0!important;min-height:100vh;box-shadow:none!important}.ag-brandbar{position:absolute;top:0;right:0;left:0;height:60px;display:flex;align-items:center;justify-content:space-between;padding:0 25px;background:linear-gradient(270deg,#063c29,#8eac97 60%,#e6ece2);color:white}.ag-brandbar strong{font-size:22px;display:flex;align-items:center;gap:14px}.ag-brandbar strong svg{width:38px;height:38px;color:#d3b04b}.ag-brandbar>span{font-size:12px;color:#5f572f;padding:5px 12px;border:1px solid #a78d39;border-radius:7px;background:#ffffff70}.ag-sidebar{position:absolute;right:0;top:60px;bottom:0;width:210px;padding:18px 10px;background:linear-gradient(145deg,#08452d,#002b20 72%);color:#fff;display:flex;flex-direction:column;gap:10px}.ag-sidebar-leaf{height:120px;display:flex;align-items:center;justify-content:center}.ag-sidebar-leaf svg{height:94px;width:94px;color:#d8b74b}.ag-page .ag-sidebar button{display:flex;align-items:center;gap:12px;text-align:right;width:100%;background:transparent!important;border:0;border-radius:9px;color:white;padding:15px 18px;font-size:17px;box-shadow:none}.ag-page .ag-sidebar button.is-selected{background:#ffffff27!important;border-inline-start:4px solid #dbb546}.ag-sidebar-account{border-top:1px solid #b3c4a770;margin:20px 12px 0;padding-top:20px;display:grid;gap:8px;font-size:12px;color:#bbccbd}.ag-sidebar-account small{color:#9db59f}.ag-sidebar .ag-back-apps{margin-top:auto!important;font-size:13px!important;color:#cedecf!important}.ag-page .ag-header{border:0;padding:0 0 12px;margin:0 0 8px;min-height:66px}.ag-eyebrow{display:none}.ag-header h2{color:#073d2a;font-size:30px;display:flex;align-items:center;gap:10px}.ag-title-leaf svg{width:38px;height:38px;color:#9a842c}.ag-header p{font-size:15px;color:#727c77}.ag-page button{background:linear-gradient(135deg,#0b6037,#034328);border:1px solid #075532;color:#fff;border-radius:8px;box-shadow:none}.ag-page button.alt{color:#174d32;border-color:#bcc9bd;background:#fff}.ag-page #agNew{font-size:18px;padding:12px 24px}.ag-metrics{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid #dde3dd;border-radius:16px;box-shadow:0 5px 16px #203c2106;max-width:850px;margin:0 auto 22px 0;gap:0;overflow:hidden}.ag-metrics>div{border:0!important;border-radius:0;background:transparent;box-shadow:none;display:flex;flex-direction:column;justify-content:center;padding:15px;gap:2px;position:relative}.ag-metrics>div+div:after{content:"";position:absolute;inset-inline-start:0;top:24%;height:52%;border-inline-start:1px solid #dce1d9}.ag-metrics span{color:#202e26;font-size:13px;font-weight:700}.ag-metrics strong{font-size:26px;color:#075531}.ag-layout{direction:ltr;grid-template-columns:minmax(0,1fr) minmax(0,1.04fr);gap:16px}.ag-layout>section,.ag-layout>aside{direction:rtl}.ag-register,.ag-editor,.ag-welcome{border:1px solid #d6dfd6;border-radius:16px;padding:23px;background:linear-gradient(135deg,#fff,#fcfdfc);box-shadow:0 5px 15px #123c2405}.ag-section-title h3,.ag-ticket h3{color:#0b3d29}.ag-section-title h3{font-size:24px}.ag-section-title h3:before{content:"▤";color:#a38222;margin-inline-end:10px}.ag-tabs{display:none}.ag-filters{border-bottom:1px solid #c3d9c1;padding-bottom:8px}.ag-page label,.ag-page h4{color:#27382c}.ag-page input,.ag-page select,.ag-page textarea{border-color:#c2c9c5;border-radius:9px;color:#1b2920;background:#fff}.ag-page input:focus,.ag-page select:focus,.ag-page textarea:focus{outline-color:#9fae83}.ag-page input[readonly]{background:#eeeff0}.ag-number{background:#e3eedc;color:#113d26}.ag-status-saved,.ag-status-draft{background:#f3edd6;color:#776024}.ag-ticket{border-color:#d8ded6;border-radius:14px;padding:18px;box-shadow:none}.ag-ticket h3{font-size:18px}.ag-ticket-cost{color:#5e735e}.ag-progress{background:#f6f8f1;border-color:#e1e6d7}.ag-progress-title{color:#20533a}.ag-progress-steps .is-complete{color:#23643b}.is-complete .ag-step-icon{background:#e4f0df;border-color:#94b889;color:#2f693c}.ag-step-check{background:#397d43}.ag-progress-steps .is-current{color:#95771c}.is-current .ag-step-icon{background:#ac8c2c;color:#fff;border-color:#ac8c2c;box-shadow:0 0 0 4px #f2ecd7}.ag-progress-key span:first-child{color:#397d43}.ag-progress-key span:nth-child(2){color:#95771c}.ag-approval-info{background:#f3f6ef;color:#4c6651}.ag-final-pricing{background:#f7f8ef;border-color:#dce2cc}.ag-estimate{background:#f5f0db;color:#53613b}.ag-items-table th{background:#e0e9da;color:#1a442d}.ag-history-entry{background:#f6f8ef;border-color:#ab8d32}.ag-stage-date{color:#51694c}
@media(max-width:1250px){.ag-page{padding-inline-end:192px!important;padding-inline-start:18px!important}.ag-sidebar{width:170px}.ag-sidebar-leaf{height:100px}.ag-layout{grid-template-columns:1fr}.ag-editor{grid-row:1}.ag-metrics{max-width:none}.ag-register,.ag-editor{padding:18px}}@media(max-width:700px){.ag-page{padding:142px 12px 20px!important}.ag-brandbar{height:58px;padding:0 12px}.ag-brandbar strong{font-size:16px;gap:6px}.ag-brandbar strong svg{width:29px;height:29px}.ag-brandbar>span{display:none}.ag-sidebar{top:58px;bottom:auto;left:0;width:auto;height:62px;padding:8px 10px;flex-direction:row;gap:6px}.ag-sidebar-leaf,.ag-sidebar-account{display:none}.ag-page .ag-sidebar button{font-size:13px;padding:9px 13px;justify-content:center;flex:1;white-space:nowrap}.ag-sidebar .ag-back-apps{margin-top:0!important}.ag-page .ag-sidebar button.is-selected{border-inline-start:0;border-bottom:3px solid #d4b04c}.ag-header h2{font-size:25px}.ag-header p{font-size:11px}.ag-page #agNew{font-size:13px;padding:10px 12px}.ag-metrics{grid-template-columns:repeat(2,1fr)}.ag-metrics>div{padding:10px}.ag-metrics span{font-size:11px}.ag-section-title h3{font-size:20px}.ag-register,.ag-editor{padding:14px}.ag-filters{grid-template-columns:1fr 1fr}.ag-layout{gap:14px}}

body:has(#page-agriculture.active) main,body:has(#page-agriculture.active) #panel{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;box-sizing:border-box}body:has(#page-agriculture.active){overflow-x:hidden}.ag-page{width:100%!important;box-sizing:border-box}.ag-page .ag-items-table th{background:#e0e9da!important;color:#1a442d!important}

.ag-company-logo{display:block;object-fit:contain;background:#fff;border-radius:6px}.ag-brandbar strong .ag-company-logo{width:110px;height:48px;padding:3px}.ag-sidebar-leaf .ag-company-logo{width:174px;height:86px;padding:8px}.ag-title-leaf .ag-company-logo{width:90px;height:46px;padding:3px}@media(max-width:1250px){.ag-sidebar-leaf .ag-company-logo{width:146px;height:74px}}@media(max-width:700px){.ag-brandbar strong .ag-company-logo{width:78px;height:38px}.ag-title-leaf .ag-company-logo{width:70px;height:36px}}

.ag-brandbar{justify-content:flex-end}

/* Compact request cards; full detail remains available in the request editor. */
.ag-ticket{padding:12px!important;border-radius:11px!important}.ag-ticket h3{font-size:16px!important;margin:7px 0 5px!important}.ag-ticket-head{gap:6px}.ag-ticket-meta{font-size:11px;gap:5px 10px}.ag-ticket-cost{font-size:11px;margin:6px 0}.ag-ticket-note{margin:5px 0;font-size:11px}.ag-ticket .ag-progress{padding:8px 7px;margin:8px 0;border-radius:9px}.ag-ticket .ag-progress-title{margin-bottom:9px;font-size:10px}.ag-ticket .ag-progress-title>span{display:none}.ag-ticket .ag-progress-steps{grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}.ag-ticket .ag-step-icon{width:28px;height:28px;border-radius:8px;margin-bottom:5px}.ag-ticket .ag-step-icon svg{width:17px;height:17px}.ag-ticket .ag-progress-steps strong{font-size:8px;line-height:1.6}.ag-ticket .ag-progress-steps small,.ag-ticket .ag-step-name,.ag-ticket .ag-progress-steps time,.ag-ticket .ag-progress-key{display:none}.ag-ticket .ag-step-check{width:11px;height:11px;line-height:10px;font-size:7px;bottom:-3px;left:-3px}.ag-ticket .is-current .ag-step-icon{box-shadow:0 0 0 2px #f2ecd7}.ag-ticket-details{font-size:11px;margin:6px 0;color:#53644e}.ag-ticket-details summary{cursor:pointer;color:#70612e;font-size:10px;padding:4px 0}.ag-ticket-details>p{margin:6px 0;font-size:11px}.ag-ticket .ag-ticket-bottom{margin-top:6px;padding-top:7px;gap:6px}.ag-ticket-bottom small{font-size:10px}.ag-ticket-bottom button{font-size:10px;padding:5px 7px}.ag-ticket .ag-approval-info{font-size:10px;padding:7px}.ag-list{gap:9px}@media(max-width:500px){.ag-ticket .ag-progress-steps{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 3px}.ag-ticket .ag-step-icon{width:26px;height:26px}.ag-ticket .ag-progress-steps strong{font-size:8px}}


/* v2.8.228: contained phone layout for the agricultural workspace. */
@media screen and (max-width:800px){
 body:has(#page-agriculture.active) .app-content,
 body:has(#page-agriculture.active) #panel,
 body:has(#page-agriculture.active) main{min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important}
 #page-agriculture.ag-page{min-width:0!important;max-width:100%!important;width:100%!important;padding:136px 10px 20px!important;box-sizing:border-box!important}
 .ag-page *{box-sizing:border-box}
 .ag-page .ag-brandbar{height:58px;padding:0 10px;max-width:100%}
 .ag-page .ag-sidebar{position:absolute;top:58px;inset-inline:0;bottom:auto;width:100%;height:auto;min-height:62px;padding:8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:stretch}
 .ag-page .ag-sidebar-leaf,.ag-page .ag-sidebar-account{display:none}
 .ag-page .ag-sidebar button,.ag-page .ag-sidebar .ag-back-apps{width:100%;min-width:0;min-height:44px;height:auto;max-width:100%;margin:0!important;padding:8px 5px!important;font-size:13px!important;white-space:normal;overflow-wrap:anywhere;justify-content:center;text-align:center;gap:5px}
 .ag-page .ag-sidebar button.is-selected{border-inline-start:0;border-bottom:3px solid #d4b04c}
 .ag-page .ag-header{flex-wrap:wrap;gap:10px;min-width:0}
 .ag-page .ag-header>div{min-width:0;flex:1 1 170px}
 .ag-page .ag-header h2{font-size:24px;flex-wrap:wrap}
 .ag-page #agNew{min-height:44px;font-size:14px;padding:9px 14px;max-width:100%;white-space:normal}
 .ag-page .ag-layout{display:grid;grid-template-columns:minmax(0,1fr)!important;width:100%;min-width:0;max-width:100%;gap:12px}
 .ag-page .ag-layout>*{min-width:0;max-width:100%;width:100%}
 .ag-page .ag-register,.ag-page .ag-editor{padding:12px;border-radius:12px}
 .ag-page .ag-welcome{display:none}
 .ag-page .ag-metrics{max-width:100%;grid-template-columns:repeat(2,minmax(0,1fr));margin:0 0 14px}
 .ag-page .ag-metrics>div{min-width:0;padding:10px 6px}
 .ag-page .ag-metrics span{overflow-wrap:anywhere;text-align:center;font-size:12px}
 .ag-page .ag-section-title{flex-wrap:wrap;align-items:center;gap:8px}
 .ag-page .ag-section-title h3{font-size:20px;min-width:0}
 .ag-page .ag-form-grid{grid-template-columns:minmax(0,1fr)}
 .ag-page .ag-form-grid .ag-full{grid-column:auto}
 .ag-page .ag-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ag-page .ag-filters>label:first-child{grid-column:1/-1}
 .ag-page label,.ag-page fieldset,.ag-page form{min-width:0;max-width:100%}
 .ag-page input,.ag-page select,.ag-page textarea,.ag-page .ag-final-pricing input{min-width:0!important;max-width:100%!important;width:100%;font-size:16px}
 .ag-page textarea{resize:vertical}
 .ag-page button{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;min-height:42px}
 .ag-page .ag-actions,.ag-page .ag-ticket-bottom>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;min-width:0}
 .ag-page .ag-actions button,.ag-page .ag-ticket-bottom button{width:100%;font-size:13px;line-height:1.6;padding:9px 6px}
 .ag-page .ag-ticket-bottom{display:flex;flex-direction:column;align-items:stretch}
 .ag-page .ag-ticket-bottom small{white-space:normal;overflow-wrap:anywhere}
 .ag-page .ag-ticket{min-width:0;max-width:100%}
 .ag-page .ag-ticket-head,.ag-page .ag-ticket-meta{min-width:0;flex-wrap:wrap}
 .ag-page .ag-ticket h3,.ag-page .ag-number,.ag-page .ag-status{max-width:100%;overflow-wrap:anywhere}
 .ag-page .ag-progress-title{flex-wrap:wrap}
 .ag-page .ag-ticket .ag-progress-steps,.ag-page .ag-progress-steps{grid-template-columns:repeat(4,minmax(0,1fr))}
 .ag-page .ag-progress-steps strong{font-size:11px}
 .ag-page .ag-ticket .ag-progress-steps strong{font-size:10px}
 .ag-page .ag-history-entry{min-width:0;max-width:100%;padding:10px}
 .ag-page .ag-history-entry ul{padding-inline-start:18px}
 .ag-page .ag-history-entry p,.ag-page .ag-approval-info,.ag-page .ag-ticket-cost,.ag-page .ag-estimate,.ag-page #agFinalSum{overflow-wrap:anywhere;max-width:100%}
 .ag-page .ag-final-pricing{min-width:0;max-width:100%;padding:10px}
 .ag-page .ag-table-wrap{width:100%;min-width:0;max-width:100%;overflow-x:auto}
 .ag-page .ag-items-table,.ag-page .ag-final-pricing table{display:block;width:100%!important;min-width:0!important;max-width:100%;table-layout:auto}
 .ag-page .ag-items-table thead,.ag-page .ag-final-pricing thead{display:none}
 .ag-page .ag-items-table tbody,.ag-page .ag-final-pricing tbody{display:grid;width:100%;min-width:0;gap:10px}
 .ag-page .ag-items-table tr,.ag-page .ag-final-pricing tr{display:grid;width:100%;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:1px solid #d7e1d2;border-radius:9px;padding:10px;background:#fff}
 .ag-page .ag-items-table td,.ag-page .ag-final-pricing td{display:block;min-width:0!important;width:auto!important;max-width:100%;border:0;padding:0;overflow-wrap:anywhere}
 .ag-page .ag-items-table td:first-child,.ag-page .ag-final-pricing td:first-child{grid-column:1/-1}
 .ag-page .ag-items-table td[data-label]:before{content:attr(data-label);display:block;font-size:12px;color:#55705d;margin-bottom:5px}
 .ag-page .ag-final-pricing td:before{display:block;font-size:12px;color:#55705d;margin-bottom:5px;font-weight:bold}
 .ag-page .ag-final-pricing td:nth-child(1):before{content:"المادة"}
 .ag-page .ag-final-pricing td:nth-child(2):before{content:"الكمية / الوحدة"}
 .ag-page .ag-final-pricing td:nth-child(3):before{content:"سعر الوحدة التقديري"}
 .ag-page .ag-final-pricing td:nth-child(4):before{content:"سعر الوحدة النهائي (د.ع)"}
 .ag-page .ag-final-pricing td:nth-child(5):before{content:"المجموع النهائي"}
 .ag-page .ag-final-pricing td:nth-child(4),.ag-page .ag-final-pricing td:nth-child(5){grid-column:1/-1}
}
@media screen and (max-width:360px){
 .ag-page .ag-actions,.ag-page .ag-ticket-bottom>div{grid-template-columns:minmax(0,1fr)}
 .ag-page .ag-items-table tr,.ag-page .ag-final-pricing tr{grid-template-columns:minmax(0,1fr)}
 .ag-page .ag-items-table td,.ag-page .ag-final-pricing td{grid-column:1/-1}
}

/* Ticket details are a separate read-only pane. */
.ag-ticket[data-ag-ticket]{cursor:pointer}.ag-ticket[data-ag-ticket]:focus-visible{outline:2px solid #a58a31;outline-offset:3px}.ag-view-meta h4{font-size:20px;margin:8px 0}.ag-view-meta p{margin:6px 0;color:#56705c}.ag-view-table{width:100%;border-collapse:collapse;font-size:13px}.ag-view-table th,.ag-view-table td{padding:10px 8px;text-align:right;border-bottom:1px solid #dce5d9;overflow-wrap:anywhere}.ag-view-table th{background:#e5eddf;color:#204b31}.ag-view-totals{padding:10px 14px;background:#f5f2df;border-radius:9px;margin-top:12px}.ag-view-notes{white-space:pre-wrap;overflow-wrap:anywhere}.ag-view-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.ag-page #agReadOnly[hidden],.ag-page #agForm[hidden]{display:none!important}@media(min-width:1251px){.ag-page.ag-has-selection .ag-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}}@media(max-width:700px){.ag-view-table{min-width:640px}.ag-view-actions>button{flex:1 1 130px}}

.ag-page .ag-kind-material>td,.ag-page p.ag-kind-material{background:#e8f5e9!important}.ag-page .ag-kind-service>td,.ag-page p.ag-kind-service{background:#e3f2fd!important}.ag-page .ag-split-totals{display:flex;gap:10px;flex-wrap:wrap}.ag-page .ag-split-totals p{padding:10px 14px;border-radius:8px;flex:1}.ag-page [data-field=item_kind]{min-width:115px}.ag-page .ag-items-table{min-width:760px}

.ag-page .ag-services-only .ag-estimate-column{display:none}.ag-page [data-field=final_unit_price][hidden],.ag-page [data-field=estimated_unit_price][hidden],.ag-page [data-final-na][hidden]{display:none!important}.ag-page .ag-items-table{min-width:900px}

@media screen and (min-width:801px) {
  .ag-page :is(h2,h3,h4,p,label,button,th,td,.ag-status,.ag-approval-info,.ag-ticket-meta,.ag-ticket-bottom small) {
    line-height:1.75;
    overflow-wrap:anywhere;
  }
  .ag-page .ag-ticket-note {
    white-space:pre-wrap;
  }
  .ag-page .ag-progress .ag-progress-steps,
  .ag-page #agProgress .ag-progress-steps {
    grid-template-columns:repeat(auto-fit,minmax(min(100%,5.75rem),1fr));
    gap:12px 8px;
  }
  .ag-page .ag-progress-steps li > strong {
    max-width:100%;
    font-size:12px;
    line-height:1.75;
    white-space:normal;
    overflow-wrap:anywhere;
  }
}

@media screen and (min-width:801px) {
  #page-agriculture.ag-page {
    width:100%; max-width:none; box-sizing:border-box;
    padding:12px clamp(14px,2vw,32px) 28px!important;
  }
  .ag-page .ag-brandbar,.ag-page .ag-sidebar-account {display:none}
  .ag-page .ag-sidebar {
    position:static; width:auto; height:auto; min-height:0; padding:6px 0 10px;
    display:flex; flex-flow:row wrap; align-items:center; gap:8px;
    background:white; border-bottom:1px solid #dbe5dc; margin-bottom:12px;
  }
  .ag-page .ag-sidebar-leaf {height:auto}
  .ag-page .ag-sidebar-leaf img {width:104px;height:44px;padding:2px}
  .ag-page .ag-sidebar button,.ag-page .ag-sidebar .ag-back-apps {
    width:auto; margin:0!important; padding:8px 16px; color:#184a32!important;
    background:#fff!important; border:1px solid #c8d8cd; font-size:15px;
  }
  .ag-page .ag-sidebar button.is-selected {background:#e7f3eb!important}
  .ag-page .ag-metrics {width:100%;max-width:none}
  .ag-page.ag-has-selection:has(#agForm:not([hidden])) .ag-layout {display:block}
  .ag-page.ag-has-selection:has(#agForm:not([hidden])) .ag-register {display:none}
  .ag-page .ag-items-table {width:100%;min-width:800px}
  .ag-page .ag-items-table th:nth-child(1) {width:15%}
  .ag-page .ag-items-table th:nth-child(2) {width:33%}
  .ag-page .ag-items-table th:nth-child(3) {width:8%}
  .ag-page .ag-items-table th:nth-child(4) {width:10%}
  .ag-page .ag-items-table th:nth-child(5) {width:15%}
  .ag-page .ag-items-table th:nth-child(6) {width:13%}
  .ag-page .ag-items-table th:nth-child(7) {width:6%}
  .ag-page .ag-items-table :is(input,select) {
    min-width:0; min-height:42px; margin:0; padding:8px; font-size:15px;
  }
  .ag-page .ag-items-table td {padding:8px 5px}
}
