:root{--ak-ink:#193447;--ak-primary:#156fc0;--ak-bg:#edf2f5;--ak-border:#bfd0dc;--ak-radius:10px;--ak-control:44px;--ak-width:1340px;color-scheme:light}
html{min-height:100%;background:var(--ak-bg);font-family:Arial,"Helvetica Neue",sans-serif!important}
body{margin:0!important;min-height:100vh;background:var(--ak-bg)!important;color:var(--ak-ink);font-family:Arial,"Helvetica Neue",sans-serif!important;font-size:17px!important;line-height:1.55}
body>header:not(#akkel-shell){display:none!important}
#akkel-shell{position:sticky!important;top:0;z-index:100!important;display:flex!important;align-items:center;gap:20px;min-height:82px!important;padding:12px 24px!important;margin:0!important;background:var(--ak-ink)!important;color:white!important;border:0!important;box-shadow:0 2px 5px #102a4018}
#akkel-shell:after{display:none!important}.ak-logo{width:78px;height:58px;object-fit:contain;background:white;padding:4px;border-radius:8px;flex:none}.ak-heading{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.ak-heading strong{font-size:23px;line-height:1.3}.ak-heading small{font-size:13px;color:#ccdae5}.ak-shell-actions{display:flex;gap:10px;align-items:center}
#akkel-shell button{height:44px;min-width:110px;padding:8px 16px;border:1px solid #7793a7;border-radius:8px;font:600 16px Arial,sans-serif;color:white;background:#2c4e65;cursor:pointer;margin:0}
#akkel-shell button:hover{background:#37647f}#akkel-shell button[hidden]{display:none!important}
#ak-message{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);max-width:90vw;background:#193447;color:white;padding:14px 22px;border-radius:10px;z-index:10000;box-shadow:0 4px 20px #0002}
body>nav,#nav{position:sticky!important;top:82px!important;z-index:90!important;display:flex;gap:8px!important;align-items:center;flex-wrap:wrap!important;padding:10px 24px!important;margin:0!important;background:#24475e!important;min-height:64px;overflow:visible!important;width:100%!important;box-sizing:border-box}
#nav:empty{display:none!important}#nav button{font:600 16px Arial,sans-serif!important;min-height:44px!important;padding:8px 15px!important;border-radius:8px!important;border:1px solid transparent!important;background:#34566d!important;color:white!important;margin:0!important;box-shadow:none!important}#nav button.active,#nav button.primary{background:var(--ak-primary)!important}
body>main,body>main#app{box-sizing:border-box!important;width:100%!important;max-width:var(--ak-width)!important;padding:20px 24px!important;margin:0 auto!important;background:transparent!important;min-height:calc(100vh - 146px)}
#content{width:100%;box-sizing:border-box}.card,.panel,.production-portal{box-sizing:border-box;border:1px solid var(--ak-border)!important;border-radius:var(--ak-radius)!important;padding:22px!important;margin:0 0 18px!important;box-shadow:none!important}
.production-portal{max-width:900px!important;margin:24px auto!important;background:#fff!important}.production-portal h1{font-size:26px!important}.production-apps{gap:16px!important;margin:22px 0!important}.production-apps button{min-height:90px!important;border-radius:8px!important;font:600 21px Arial,sans-serif!important}
.auth-card,.panel.login{max-width:480px;margin:24px auto!important;background:#fff!important;border-radius:10px!important;padding:24px!important}
.ak-home-brand{display:block;width:148px;height:142px;object-fit:contain;margin:0 auto 18px}
button,input,select,textarea{font-family:Arial,"Helvetica Neue",sans-serif!important;box-sizing:border-box}button{border-radius:8px!important;cursor:pointer}button:disabled{cursor:default;opacity:.55}.actions,.bar,.header-actions{gap:10px!important}.actions button,.bar button,.card>button,.panel>button,dialog button,.tabs button,td button{min-height:44px;padding:9px 16px;border:1px solid #acc2d2;font-size:16px;border-radius:8px;color:var(--ak-ink);background:#edf4f8}button.primary,.primary:not(a){background:var(--ak-primary)!important;color:white!important;border-color:var(--ak-primary)!important}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select{min-height:44px;border-radius:8px;border:1px solid #aac0d0}input[type=number]{appearance:textfield;-moz-appearance:textfield;direction:ltr;text-align:right}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
body[data-ak-section=materials] input,body[data-ak-section=materials] select,body[data-ak-section=users] input,body[data-ak-section=users] select,body[data-ak-section=definitions] input,body[data-ak-section=definitions] select{font-size:17px!important;padding:10px 12px}
h1,h2,h3{font-family:Arial,"Helvetica Neue",sans-serif!important}h1{font-size:25px}h2{font-size:22px}h3{font-size:19px}label{font-size:16px}table{border-collapse:collapse;width:100%}th,td{padding:13px 14px!important;font-size:16px!important;text-align:right}th{background:#edf3f7!important;color:var(--ak-ink)}
dialog{border:1px solid var(--ak-border)!important;border-radius:12px!important;max-width:min(1100px,94vw)!important;max-height:90vh!important;overflow:auto!important;padding:24px!important}dialog::backdrop{background:#19344788}
#installPanel,.production-tools,[data-ak-legacy-nav]{display:none!important}.ak-admin-links{display:flex;gap:10px;margin-bottom:18px}.ak-admin-links a{padding:9px 16px;background:#edf4f8;border:1px solid #acc2d2;border-radius:8px;color:#193447;text-decoration:none;min-height:44px;box-sizing:border-box}
@media(max-width:800px){#akkel-shell{padding:10px 14px!important;gap:10px}.ak-heading strong{font-size:19px}.ak-logo{width:60px}.ak-shell-actions{gap:6px}#akkel-shell button{min-width:80px;font-size:14px;padding:8px}body>main,body>main#app{padding:16px!important}#nav{padding:8px 14px!important}.card,.panel{padding:16px!important}}

.ak-validation{padding:16px;margin:12px 0;background:#fff0ec;border:2px solid #b83228;border-radius:8px;color:#84251f;scroll-margin-top:170px}.ak-invalid{outline:2px solid #b83228!important;outline-offset:3px}
#toast{z-index:10001!important;max-width:min(700px,92vw)!important;white-space:pre-wrap}
.ak-scroll-hint{font-size:14px;background:#e5eef6;border:1px solid #aec7dc;padding:8px 12px;border-radius:6px;margin:8px 0}
body[data-ak-section=production] input:disabled,body[data-ak-section=production] select:disabled,body[data-ak-section=production] button.screen-value:disabled{cursor:not-allowed!important;border-style:dashed!important;box-shadow:none!important;filter:saturate(.35)}

#ak-install-help{width:min(480px,90vw);box-sizing:border-box;text-align:right;line-height:1.8}#ak-install-help h2{margin-top:0}#ak-install-help p{white-space:normal;overflow-wrap:anywhere}
@media(max-width:600px){#akkel-shell{flex-wrap:wrap}.ak-heading{flex:1}.ak-shell-actions{width:100%;flex-wrap:wrap}#akkel-shell button{flex:1;min-width:90px}}

/* AK_DEFINITIONS_AUDIT_V1 */
.ak-home-brand{width:92px;height:86px;margin:0 auto 8px}.production-portal{margin:12px auto!important;padding:18px!important}.production-portal h1{margin:8px 0}.production-apps{margin:14px 0!important;gap:12px!important}.production-apps button{min-height:70px!important}
.auth-card{margin:12px auto!important;padding:18px!important}.auth-card label{display:block;margin:10px 0}.auth-card input,.auth-card select{display:block;width:100%!important;max-width:none!important}.auth-card h2{margin:8px 0}.auth-card p{margin:8px 0}.auth-card .pin-keys{gap:8px!important;margin:12px 0!important}.auth-card .pin-keys button{min-height:48px!important;padding:8px!important}.auth-card small,.auth-card .note{font-size:13px;line-height:1.4}
body>nav,#nav{flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important}#nav button{flex-shrink:0}
body[data-ak-section=production] input:disabled,body[data-ak-section=production] select:disabled,body[data-ak-section=production] button.screen-value:disabled{opacity:1!important;filter:none!important;color:#193447!important;-webkit-text-fill-color:#193447!important}
.ak-date-control{display:inline-flex;position:relative;width:100%;min-width:150px;min-height:44px;align-items:center;background:white;border:1px solid #aac0d0;border-radius:8px;padding:10px 12px}.ak-date-control output{direction:ltr;unicode-bidi:isolate;white-space:nowrap}.ak-date-control input[type=date]{position:absolute;inset:0;max-width:none!important;width:100%!important;height:100%;opacity:0;cursor:pointer}.ak-date-control:focus-within{outline:2px solid #156fc0}.sample-result{display:block;clear:both;margin-top:12px;overflow-wrap:anywhere}.sample-link{display:block;margin:12px 0;float:none!important}.sample-result bdi{white-space:nowrap}.card .photo{display:block;float:none!important;max-width:100%;height:auto}.tablet-entry .remove-entry{min-width:44px!important;min-height:44px!important}
.ak-number-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.ak-number-grid button{min-height:48px}#ak-number-value{width:100%;direction:ltr;margin-bottom:12px}

/* Grouped home, consistent large targets on computer and tablet. */
.ak-work-home{max-width:1100px!important}.ak-work-home .ak-home-brand{display:none!important}.ak-home-group{margin:20px 0 0;border-top:1px solid #d6e0e8;padding-top:12px}.ak-home-group h2{font-size:20px;margin:0 0 10px}.ak-work-home .production-apps{grid-template-columns:repeat(2,minmax(0,1fr));margin:10px 0!important}.ak-work-home .production-apps button{width:100%;min-height:70px!important;padding:12px;font-size:20px!important}.ak-batch-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ak-batch-card{padding:14px;background:#eef5fa;border:1px solid #bdd0dd;border-radius:8px;overflow-wrap:anywhere}.ak-batch-card h3{font-size:17px;margin:0 0 8px}.ak-batch-card strong{font-size:20px}.ak-batch-card p{margin:8px 0 0;font-size:14px}@media(max-width:600px){.ak-work-home .production-apps,.ak-batch-summary{grid-template-columns:1fr}.ak-work-home .production-apps button{min-height:64px!important}}

/* Compact batch workflow: task-only forms, readable touch targets. */
.batch-main{max-width:1200px;margin:0 auto;padding:16px!important}
.batch-main h1{font-size:24px;margin:0 0 12px}
.batch-main #message:empty{display:none}
.batch-main .card{padding:16px;margin:12px 0}
.batch-main .actions{gap:8px;margin:12px 0}
.batch-form-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.batch-form-head h2{font-size:23px;margin:0}
.batch-form-head>label{width:280px;max-width:100%;margin:0}
.batch-main .batch-hint{margin:10px 0 14px;font-size:15px}
.batch-tank-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.batch-tank-group{min-width:0;border:1px solid #cbd9e2;border-radius:8px;padding:10px 12px}
.batch-tank-group h3{font-size:19px;margin:0 0 6px;padding-bottom:6px;border-bottom:1px solid #dce6ed}
.batch-tank-row{display:flex!important;align-items:center;justify-content:space-between;gap:12px;margin:0!important;padding:6px 0;min-height:56px}
.batch-level{display:flex;align-items:center;gap:6px;flex-shrink:0}
.batch-main .batch-level input{width:104px;min-height:44px;margin:0;padding:8px;text-align:center}
.batch-main button{min-height:44px;padding:10px 16px}
.batch-main .batch-form-actions{margin-bottom:0;padding-top:10px;border-top:1px solid #dce6ed}
.batch-main .batch-empty{padding:18px;text-align:center}
.batch-main .batch-success{background:#edf7ee}
.batch-main td{padding:10px 8px}
.batch-main td button{margin:3px}
@media(max-width:700px){.batch-tank-groups{grid-template-columns:1fr;gap:12px}.batch-form-head{gap:10px}.batch-main{padding:10px!important}.batch-main .card{padding:12px}.batch-tank-row{gap:8px}.batch-main .batch-level input{width:88px}}

/* RTL aligned tank fields and latest resulting levels. */
.batch-main{direction:rtl}
.batch-main input{text-align:center}
.batch-main input[type="datetime-local"]::-webkit-datetime-edit{text-align:center}
.batch-tank-row{display:grid!important;grid-template-columns:minmax(120px,1.15fr) auto minmax(105px,1fr);justify-content:start;gap:10px}
.batch-tank-name{min-width:0;overflow-wrap:anywhere}
.batch-level{direction:rtl}
.batch-main .batch-level input{width:140px;max-width:100%;text-align:center}
.batch-main .batch-level input::placeholder{font-size:13px;opacity:1;color:#667785;text-align:center}
.batch-last-level{font-size:13px;color:#526878;line-height:1.5;text-align:right;overflow-wrap:anywhere}
@media(max-width:1100px) and (min-width:701px){.batch-tank-row{grid-template-columns:minmax(110px,1fr) auto}.batch-last-level{grid-column:1/-1}.batch-main .batch-level input{width:135px}}
@media(max-width:700px){.batch-tank-row{grid-template-columns:minmax(100px,1fr) auto;gap:5px 8px}.batch-last-level{grid-column:1/-1}.batch-main .batch-level input{width:135px}}

.batch-tank-row[hidden]{display:none!important}

/* Employee entry consistency — 2026-10-10 */
body:has(#akkel-shell) {direction:rtl}
#app input:not([type=checkbox]):not([type=radio]):not([type=file]),#app select,
#content input:not([type=checkbox]):not([type=radio]):not([type=file]),#content select,
.batch-main input,.batch-main select {text-align:center}
.employee-save {position:sticky!important;bottom:0;z-index:20;display:flex!important;flex-direction:row!important;direction:rtl;justify-content:flex-start!important;gap:8px;padding:10px;background:#fff;border-top:1px solid #ccd9e2;flex-wrap:wrap}
.employee-save button {min-height:44px}
.employee-save .summary {margin-inline-end:auto}
.entry-notes {margin:10px 0}.entry-notes summary {cursor:pointer;min-height:44px;display:flex;align-items:center}.entry-notes textarea {min-height:60px}
.entry-warning {background:#fff3d9;color:#594000;padding:12px;border-radius:8px}
.ak-home-group .production-apps {margin:12px 0;gap:10px}
.ak-home-group .production-apps button {min-height:64px;padding:12px;font-size:18px}
#content .reading-notes {padding:10px 16px}
#content:has([data-action="save-reading"]) {padding-bottom:12px}

#sync-note:empty {display:none}
.save-dock {direction:rtl;justify-content:flex-start!important;gap:8px}
#app .title {padding:8px 12px;min-height:0}

/* AK_WORKFLOW_UI — compact RTL task, entry and document presentation. */
body[data-ak-section=packaging],body[data-ak-section=materials],body[data-ak-section=fuel]{--ak-paper:#fff;--ak-bg:#f3f6f5;--ak-ink:#213a30;--ak-line:#d9e4dd;--ak-soft:#eaf3ed;--ak-brand:#246248;background:var(--ak-bg);color:var(--ak-ink)}
body:is([data-ak-section=packaging],[data-ak-section=materials],[data-ak-section=fuel]) #app{max-width:1180px;margin-inline:auto;padding:12px}
body:is([data-ak-section=packaging],[data-ak-section=materials],[data-ak-section=fuel]) .card{border:1px solid var(--ak-line);border-radius:14px;box-shadow:none;padding:16px;margin:12px 0;background:var(--ak-paper)}
body:is([data-ak-section=packaging],[data-ak-section=materials],[data-ak-section=fuel]) :is(input,select,textarea){font-size:16px;text-align:center;min-width:0;max-width:100%;border-radius:9px}
body:is([data-ak-section=packaging],[data-ak-section=materials],[data-ak-section=fuel]) button{min-height:44px;border-radius:9px}
body:is([data-ak-section=packaging],[data-ak-section=materials],[data-ak-section=fuel]) .primary{background:var(--ak-brand);color:white}
.ak-entry-lines{display:grid;gap:9px;margin:14px 0;min-width:0}.ak-entry-line{border:1px solid var(--ak-line);border-radius:11px;background:var(--ak-paper);margin:0!important;min-width:0;overflow:hidden}
.ak-entry-line>summary{padding:12px 14px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:56px;list-style:none;background:var(--ak-soft);cursor:pointer}
.ak-entry-line>summary::-webkit-details-marker{display:none}.ak-entry-line>summary:before{content:'＋';font-size:20px;color:var(--ak-brand)}.ak-entry-line[open]>summary:before{content:'−'}
.ak-line-name{font-weight:600;flex:1;min-width:150px}.ak-line-summary{font-size:14px;color:#415e4d;overflow-wrap:anywhere}
.ak-entry-line .ak-line-fields{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr))!important;gap:12px!important;padding:14px!important;margin:0!important;min-width:0!important;background:var(--ak-paper)!important}
.ak-entry-field{min-width:0;align-self:start}.ak-entry-field>label,.ak-line-fields>label{font-size:14px;display:block;text-align:right}.ak-entry-field>label{margin-bottom:5px}
.ak-line-fields :is(select,input,textarea,output){width:100%;box-sizing:border-box}.ak-line-fields [data-total],.ak-line-fields [data-liters]{display:block;text-align:center;padding:10px;background:var(--ak-soft);border-radius:8px;font-weight:600}
.ak-entry-scroll{overflow:visible!important;min-width:0!important}.ak-entry-scroll:before,.ak-entry-scroll:after{display:none!important}
.ak-document-page{max-width:1100px;margin-inline:auto!important}.ak-document-page h2{font-size:23px;margin:12px 0}.ak-document-page .actions,.ak-document-page .document-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.ak-document-page .arrows,.ak-document-page .document-arrows{flex-wrap:wrap;gap:6px}
.ak-responsive-table{width:100%!important;min-width:0!important;border-collapse:collapse!important;background:var(--ak-paper);font-size:15px;table-layout:auto}
.ak-responsive-table th{background:var(--ak-soft)!important;font-size:14px;font-weight:500;white-space:normal!important;padding:11px!important;color:var(--ak-ink)}
.ak-responsive-table td{padding:12px!important;white-space:normal!important;overflow-wrap:anywhere;max-width:350px;border-bottom:1px solid var(--ak-line)}
.ak-responsive-table tr[hidden]{display:none!important}.ak-document-list tr:hover{background:#f0f6f2}.ak-list-search{display:block;max-width:480px;margin:0 0 12px;font-size:14px}.ak-list-search input{display:block;width:100%;margin-top:5px}
.ak-task-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.ak-task-tabs button{min-height:44px!important;padding:8px 16px!important;font-size:16px!important}.ak-task-tabs button[aria-pressed=true]{background:#246248!important;color:white!important}
.ak-work-home .production-apps{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))!important;gap:10px!important}.ak-work-home .production-apps button{min-height:54px!important;font-size:17px!important;padding:10px!important}.ak-home-group{margin-top:14px!important;padding-top:12px!important}.ak-home-group[hidden],#ak-home-batches[hidden]{display:none!important}.ak-task-tabs~.ak-home-group h2{font-size:18px}
@media(max-width:700px){
 body:is([data-ak-section=packaging],[data-ak-section=materials],[data-ak-section=fuel]) #app{padding:8px}.ak-entry-line>summary{padding:10px}.ak-line-summary{flex-basis:100%;padding-inline-start:28px}.ak-entry-line .ak-line-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:10px!important;gap:10px!important}.ak-entry-field:first-child,.ak-line-fields>label:first-child{grid-column:1/-1}
 .ak-responsive-table,.ak-responsive-table tbody{display:block;width:100%!important}.ak-responsive-table thead{display:none}.ak-responsive-table tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:10px 0;border-bottom:1px solid var(--ak-line)}.ak-responsive-table td{display:block;padding:6px!important;border:0;max-width:none!important;min-width:0;text-align:center!important}.ak-responsive-table td:first-child,.ak-responsive-table td[colspan]{grid-column:1/-1;text-align:right!important}.ak-responsive-table td:before{content:attr(data-ak-label);display:block;font-size:12px;color:#53695c;margin-bottom:4px}.ak-responsive-table td:empty{display:none}
 .ak-document-page .arrows,.ak-document-page .document-arrows{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;flex:auto!important}.ak-document-page .actions button{font-size:14px}.ak-document-page .document-toolbar{flex-wrap:wrap!important}
 .ak-task-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.ak-task-tabs button{font-size:14px!important;padding:8px!important}
}
body:is([data-ak-section=packaging],[data-ak-section=materials],[data-ak-section=fuel]) .employee-save{position:static!important;margin-top:14px;padding:12px 0 0!important}
body:is([data-ak-section=packaging],[data-ak-section=materials],[data-ak-section=fuel]) .ak-date-control output{text-align:center!important;width:100%}
.ak-document-page>.actions{border-bottom:1px solid var(--ak-line);padding-bottom:12px}
#akkel-shell{position:relative!important;top:auto!important;min-height:68px!important}
body>nav,#nav{position:relative!important;top:auto!important;flex-wrap:wrap!important;overflow:visible!important;min-height:0!important}
#akkel-sync-summary{margin:8px 12px!important;padding:8px 12px!important;font-size:14px!important;line-height:1.6!important}
.ak-shell-more{position:relative;margin:0;color:white}.ak-shell-more>summary{list-style:none;min-height:44px;padding:10px 14px;border:1px solid #7793a7;border-radius:8px;cursor:pointer;font-size:15px}.ak-shell-more>summary::-webkit-details-marker{display:none}.ak-shell-more-body{position:absolute;top:100%;inset-inline-end:0;min-width:190px;background:#193447;border:1px solid #7793a7;border-radius:10px;padding:8px;z-index:120;display:grid;gap:8px;box-shadow:0 6px 18px #0002}.ak-shell-more:not([open])>.ak-shell-more-body{display:none}.ak-shell-more-body button{width:100%}
body:is([data-ak-section=packaging],[data-ak-section=materials],[data-ak-section=fuel]) #app{padding:12px!important;max-width:1180px!important}
body:is([data-ak-section=packaging],[data-ak-section=materials],[data-ak-section=fuel]) .card{padding:16px!important;margin:0 0 12px!important}
@media(max-width:700px){#akkel-shell{display:flex!important;flex-wrap:nowrap!important;padding:8px 10px!important;gap:8px!important}.ak-logo{width:40px!important;height:40px!important}.ak-heading strong{font-size:16px!important}.ak-heading small{display:none}.ak-shell-actions{width:auto!important;display:flex!important;flex-wrap:nowrap!important;gap:6px!important}#akkel-shell #ak-home{min-width:0!important;padding:8px!important;font-size:12px!important;height:auto!important;width:75px}.ak-shell-more>summary{font-size:13px;padding:10px 8px}#nav{padding:8px!important;gap:6px!important}#nav button{flex:1 1 100px!important;padding:8px!important;font-size:14px!important}body:is([data-ak-section=packaging],[data-ak-section=materials],[data-ak-section=fuel]) .card{padding:12px!important}#akkel-sync-summary{margin:6px 8px!important;font-size:12px!important}}
.ak-line-error{color:#a32131;font-size:14px;margin:8px 14px 12px}

/* UI POLISH: compact hierarchy, dependable disclosure icons and document actions. */
.ak-entry-line>summary:before,.entry-notes>summary:before{content:'';display:inline-block;width:8px;height:8px;border:solid currentColor;border-width:0 0 2px 2px;transform:rotate(45deg);flex:0 0 8px;margin-inline:3px 6px}
.ak-entry-line[open]>summary:before,.entry-notes[open]>summary:before{content:'';transform:rotate(-45deg)}
.entry-notes>summary{gap:8px;font-weight:600}
.ak-work-home .production-apps{grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr))!important}
.ak-work-home .production-apps button{background:#edf4f0!important;border:1px solid #b8cec1!important;color:#204b36!important;text-align:right!important;line-height:1.5}
.ak-work-home .production-apps button:hover{background:#dfede4!important}
.ak-secondary-sections .production-apps{display:flex!important;flex-wrap:wrap;gap:8px!important;margin:6px 0!important}
.ak-secondary-sections .production-apps button{font-size:14px!important;min-height:44px!important;padding:8px 12px!important;background:white!important}
.ak-secondary-sections h2{font-size:14px!important;color:#53695c}
.ak-task-tabs button:not([aria-pressed=true]){background:#fff!important;color:#254536!important;border:1px solid #bfd2c5!important}
.ak-responsive-table [hidden]{display:none!important}
.ak-document-page>.arrows,.ak-document-page>.document-arrows{display:flex;justify-content:center;border-top:1px solid #d9e4dd;padding-top:12px;margin-top:12px}
.ak-document-page button[data-action=delete]{background:#fff!important;color:#a32938!important;border:1px solid #d6aeb3!important}
.ak-document-page>.actions{border-bottom:0;padding:12px 0 0;margin-bottom:8px}
.ak-document-page>.actions button{background:#edf4f0;color:#214c37;border:1px solid #b8cec1}
@media(max-width:700px){
 .ak-work-home .production-apps{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .ak-work-home .production-apps button{font-size:15px!important;padding:8px 10px!important;min-height:52px!important}
 .ak-document-page .ak-responsive-table td.ak-not-applicable{display:none!important}
 .ak-document-page .ak-responsive-table tbody>tr{gap:2px;padding:8px 0}
 .ak-document-page .ak-responsive-table td{padding:4px!important}
 .ak-document-page .arrows button,.ak-document-page .document-arrows button{font-size:13px;padding:8px}
}

.ak-sync-details{margin:0}.ak-sync-details>summary{cursor:pointer;min-height:28px;line-height:28px}.ak-sync-details p{margin:6px 0 0;font-size:12px;border-top:1px solid #bdd0dd;padding-top:6px}

.ak-work-home .ak-secondary-sections .production-apps button{width:auto!important;flex:1 1 90px!important;font-size:13px!important;text-align:center!important;min-height:44px!important}
.ak-task-tabs{background:transparent!important;padding:0!important}
/* Keep native material labels stacked after converting their row to a disclosure. */
body[data-ak-section=materials] .ak-line-fields>label{display:flex!important;flex-direction:column!important;align-items:stretch;white-space:normal;gap:6px;min-width:0}
body[data-ak-section=materials] .ak-line-fields>label :is(input,select,output){display:block;width:100%;max-width:100%;min-width:0}
body[data-ak-section=materials] .tablet-entries{overflow:visible!important}
@media(max-width:700px){
 body[data-ak-section=materials] .compact .doc-header{min-width:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body[data-ak-section=materials] .compact{overflow:visible!important}
 body[data-ak-section=materials] .document-toolbar{display:flex!important;flex-wrap:wrap!important;gap:6px!important;overflow:visible!important;position:static!important}
 body[data-ak-section=materials] .document-toolbar button{flex:1 1 40%!important;min-width:0!important}
}
/* Fuel receipt/transfer fields must not require a hidden horizontal scroll. */
body[data-ak-section=fuel] #app .fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;min-width:0;align-items:end}
body[data-ak-section=fuel] #app .fields>label{width:auto;min-width:0;max-width:100%}
body[data-ak-section=fuel] #app input[type=datetime-local]{min-width:0;width:100%}
body[data-ak-section=fuel] #app .tank-caption{white-space:normal;flex-wrap:wrap}
body[data-ak-section=fuel] #app .group-total{min-width:0}
@media(max-width:700px){
 body[data-ak-section=fuel] #app .fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-ak-section=fuel] #app .fields>label:first-child{grid-column:1/-1}
 #akkel-shell #ak-home{white-space:normal!important;line-height:1.4}
}
body[data-ak-section=fuel] #app .fields>label>input,body[data-ak-section=fuel] #app .fields>label>select{height:48px;min-height:48px;box-sizing:border-box}
@media(max-width:700px){body[data-ak-section=materials] .document-toolbar .document-arrows{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));flex:1 1 100%!important;width:100%;gap:6px!important}}
@media(min-width:701px) and (max-width:900px){body[data-ak-section=fuel] #app .fields:not(.operation-row){grid-template-columns:repeat(2,minmax(0,1fr))}body[data-ak-section=fuel] #app .fields>label:has(input[type=datetime-local]){grid-column:1/-1}}

/* Unified employee layout — retains all native data/permission controls. */
body :is(input:not([type=checkbox]):not([type=radio]),select,textarea){box-sizing:border-box;max-width:100%;min-width:0;text-align:center!important}
body :is(label,fieldset,.grid,.fields,.bar,.filter,.filters){min-width:0;max-width:100%;box-sizing:border-box}
body input:is([type=date],[type=datetime-local],[type=time]){width:100%;min-width:0!important}
.ak-work-home{padding:16px!important;margin-top:10px!important}
.ak-work-home>h1{font-size:24px;margin:0 0 8px!important}
.ak-work-home>p{margin:6px 0!important;font-size:14px}
.ak-work-home .ak-batch-summary{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:8px 0!important}
.ak-work-home .ak-batch-card{padding:8px!important;min-height:0!important}
.ak-work-home .ak-batch-card h3,.ak-work-home .ak-batch-card p{font-size:12px!important;margin:0 0 4px!important}
.ak-work-home .ak-batch-card strong{font-size:14px!important}
.ak-home-group{margin:10px 0!important;padding:0!important}.ak-home-group h2{font-size:17px!important;margin:8px 0!important}
.ak-work-home .production-apps{margin:6px 0!important;gap:8px!important}
.ak-editing .document-arrows,.ak-editing .arrows{display:none!important}
.ak-editing .document-toolbar>[data-action=new]{display:none!important}
.ak-editing .employee-save,.ak-editing .actions:has(>[data-action=save]){display:flex!important;flex-wrap:wrap;gap:8px;justify-content:flex-start;align-items:center}
.ak-review-table{width:100%;min-width:0!important}
body[data-ak-section=definitions] dialog{width:min(920px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;box-sizing:border-box;padding:18px!important}
body[data-ak-section=definitions] dialog fieldset{width:100%;min-width:0!important;margin-inline:0}
body[data-ak-section=definitions] dialog table{table-layout:fixed}
body[data-ak-section=definitions] dialog td{padding:8px 4px!important;overflow-wrap:anywhere}
body[data-ak-section=definitions] dialog input[type=radio]{width:20px;height:20px}
.ak-view-choice{display:flex;justify-content:flex-end;margin:8px 0;gap:8px}.ak-view-choice button{min-height:44px}
.ak-hmi-fields .hmi{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;padding:12px;min-width:0!important;width:100%!important;height:auto!important;aspect-ratio:auto!important;direction:rtl;box-sizing:border-box;background:#f4f7f6}
.ak-hmi-fields .hmi svg.layout{display:none!important}
.ak-hmi-fields .hmi .node{position:static!important;inset:auto!important;width:auto!important;height:auto!important;min-width:0;padding:8px;background:#fff;border:1px solid #d1deda;border-radius:8px}
.ak-hmi-fields .hmi .node label,.ak-node-title{font-size:14px!important;white-space:normal!important;line-height:1.5!important;display:block;text-align:center;color:#203b46}
.ak-hmi-fields .hmi .screen-value{font-size:22px!important;min-height:46px;width:100%!important}
.ak-hmi-fields .hmi .thermal-row{flex-wrap:wrap;justify-content:center}
.ak-reading-group>summary{font-size:18px;font-weight:700;cursor:pointer;padding:8px;min-height:44px;box-sizing:border-box}
.ak-reading-group[open]>summary{border-bottom:1px solid #d3e1e6;margin-bottom:12px}
body[data-ak-section=cut] .plc-grid{min-width:0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px}
body[data-ak-section=cut] .plc-card{min-width:0!important;width:auto!important}
body[data-ak-section=cut] .plc-scroll{overflow:visible!important}
body[data-ak-section=cut] .grid{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))!important}
body:is([data-ak-section=cut],[data-ak-section=production]) #toast{bottom:8px!important;top:auto!important;max-width:calc(100vw - 24px);pointer-events:none}
@media(max-width:700px){
 body[data-ak-section=materials] .filters,body[data-ak-section=materials] .filter,body[data-ak-section=materials] .fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 body[data-ak-section=materials] .filters>*,body[data-ak-section=materials] .filter>*,body[data-ak-section=materials] .fields>*{min-width:0!important;width:auto!important}
 body[data-ak-section=cut] .plc-grid{grid-template-columns:1fr!important}
 body[data-ak-section=cut] .plc-card{min-height:0!important}
 body[data-ak-section=cut] .plc-temperature,body[data-ak-section=cut] .plc-humidity{min-height:0!important}
 .ak-review-table,.ak-review-table tbody{display:block!important;width:100%!important}
 .ak-review-table thead{display:none!important}
 .ak-review-table tbody tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid #cbdadf;padding:10px 0;gap:8px}
 .ak-review-table td{display:flex!important;flex-direction:column;gap:4px;border:0!important;padding:4px!important;min-width:0;text-align:right!important;overflow-wrap:anywhere}
 .ak-review-table td:before{content:attr(data-ak-label);font-size:12px;color:#526c77;white-space:normal}
 .ak-review-table td[colspan]{grid-column:1/-1}
 .ak-review-table td[hidden]{display:none!important}
 body[data-ak-section=definitions] dialog .scroll{overflow:visible!important}
 body[data-ak-section=definitions] dialog .tank-grid{grid-template-columns:1fr!important}
 .ak-hmi-fields .hmi{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media(max-width:700px){body[data-ak-section=materials] .ledger-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%;min-width:0}body[data-ak-section=materials] .ledger-filters>label{min-width:0!important}body[data-ak-section=materials] .ledger-filters .ak-date-control{width:100%;min-width:0}}
.ak-tank-row:not(.ak-tank-expanded)>td.ak-tank-secondary{display:none!important}
.ak-tank-row .ak-tank-more{font-size:13px;min-height:40px;padding:6px 10px}
@media(min-width:701px){.ak-tank-table tbody{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ak-tank-table thead{display:none}.ak-tank-table tbody tr{display:flex;flex-direction:column;border:1px solid #cbdadf;padding:12px;border-radius:8px}.ak-tank-table td{display:flex;justify-content:space-between;gap:10px;border:0}.ak-tank-table td:before{content:attr(data-ak-label);font-size:12px;color:#526c77}.ak-tank-table td:first-child{font-weight:700}}

body .ak-hmi-fields .hmi.original{min-width:0!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important}
body .ak-hmi-fields .hmi-bg{display:none!important}
body .ak-hmi-fields .design-item{position:static!important;inset:auto!important;width:auto!important;height:auto!important;min-height:0!important;font-size:14px!important;overflow:visible!important}
body .ak-hmi-fields .design-item:not([style*="display: none"]){display:flex!important;flex-direction:column;gap:6px}
body .ak-hmi-fields .design-item>label{font-size:14px!important;height:auto!important;min-height:20px!important;color:#203b46!important;background:transparent!important}
body .ak-hmi-fields .design-item .screen-value{height:46px!important;flex:none!important}
body .ak-hmi-fields .design-item .unit-mark{position:static!important;font-size:12px!important}
body .ak-hmi-fields .hmi>.thermal-stack{position:static!important;width:auto!important}
body .ak-hmi-fields .hmi>.strip-hint{display:none!important}

body:is([data-ak-section=cut],[data-ak-section=production]) .employee-save{position:static!important;top:auto!important;bottom:auto!important}
body .ak-view-choice{display:flex!important;position:static!important;visibility:visible!important}
body[data-ak-section=fuel] .totals{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px}
body[data-ak-section=fuel] .totals>div{min-width:0;padding:10px!important}
body .ak-hmi-fields .preview-caption{display:none!important}
body .ak-hmi-fields .photo-slot{position:static!important;grid-column:1/-1;width:auto!important}

body[data-ak-section=fuel] .summary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px}
body[data-ak-section=fuel] .summary>div{min-width:0!important;padding:10px!important;font-size:14px}
body[data-ak-section=fuel] .summary h3{font-size:18px;margin:8px 0}
.ak-roll-hint{display:block;color:#526c77;line-height:1.5;font-size:13px;margin-top:6px}
.ak-entry-field[hidden]{display:none!important}
body[data-ak-section=production] .save-dock{position:static!important;bottom:auto!important;top:auto!important;box-shadow:none!important;backdrop-filter:none!important;margin-top:12px}
body .ak-hmi-fields .machine-photo,body .ak-hmi-fields .oven-settings-button,body .ak-hmi-fields .machine-mode-button{position:static!important;inset:auto!important;width:auto!important;grid-column:1/-1}
body .ak-hmi-fields .hmi{background:#f4f7f6!important}
body .ak-hmi-fields .thermal-row{padding:8px;border:1px solid #d1deda;border-radius:8px;background:white}
body .ak-hmi-fields .thermal-row label{order:-1}

#toast.ak-quiet-toast{display:none!important}

/* Visual fixes v1: compact RTL, native controls, no calculation changes. */
#akkel-sync-summary{padding:4px 10px!important;margin:4px 8px!important}
#akkel-sync-summary .ak-sync-details>summary{min-height:24px;line-height:24px}
#akkel-shell{padding-block:8px!important}
#nav{margin-bottom:0!important}
body>main{padding-top:12px!important}
body[data-ak-section=materials] .ak-editing .document-toolbar{display:none!important}
body[data-ak-section=materials] .ak-editing .employee-save{display:flex!important;gap:8px;flex-wrap:wrap;align-items:center}
body[data-ak-section=materials] .ak-editing [data-action=remove-line]{min-width:100px!important;min-height:44px!important;white-space:nowrap!important;width:auto!important;justify-self:start}
body[data-ak-section=materials] .ak-editing .employee-save>button{min-height:44px;flex:0 1 auto}
body[data-ak-section=materials] .ak-editing .employee-save>#total{flex-basis:100%;order:-1}
body[data-ak-section=cut] .filters{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px!important;align-items:end}
body[data-ak-section=cut] .filters>*{width:100%!important;min-width:0!important;max-width:100%;margin:0!important;box-sizing:border-box}
body[data-ak-section=cut] .filters :is(input,select){width:100%!important;min-width:0!important}
.ak-review-table :is(td,th){white-space:normal!important;overflow-wrap:anywhere;min-width:0}
.ak-review-table td>button{margin:3px;min-height:44px}
.ak-review-table [hidden]{display:none!important}
.ak-row-meta{font-size:13px;white-space:normal;margin-top:6px}
.ak-row-meta summary{cursor:pointer;padding:6px 0}
.ak-row-meta p{margin:5px 0}
.ak-document-meta,.ak-report-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin:12px 0}
.ak-document-meta>div,.ak-report-totals>div{padding:10px;background:#f0f6f5;border-radius:8px;min-width:0;overflow-wrap:anywhere}
.ak-document-meta small,.ak-report-totals small{display:block;color:#526c77;font-size:13px;margin-bottom:5px}
.ak-document-meta bdi{display:block}
.ak-report-totals strong{font-size:22px}
.ak-document-total{padding:10px;background:#eaf4ef;border-radius:8px;font-weight:bold}
.ak-batch-report>h2{margin-top:12px}
.ak-report-back{min-height:44px}
.ak-report-help{margin:12px 0;font-size:14px;color:#526c77}
.ak-report-help summary{cursor:pointer;min-height:32px}
.ak-result{font-weight:bold;background:#eaf4ef}
body[data-ak-section=definitions] dialog{padding:0!important;overflow:hidden!important;max-height:calc(100dvh - 24px)!important}
body[data-ak-section=definitions] dialog>form{padding:16px;overflow:auto;max-height:calc(100dvh - 28px);scroll-padding-bottom:86px}
body[data-ak-section=definitions] dialog form>.actions{position:sticky;bottom:-16px;background:white;padding:12px 0;margin:12px 0 0;z-index:3;border-top:1px solid #cbdadf;box-shadow:0 -6px 10px #fff}
body[data-ak-section=definitions] dialog label{margin:8px 0}
body[data-ak-section=definitions] dialog table input,body[data-ak-section=definitions] dialog table select{width:100%;margin:0!important}
body[data-ak-section=definitions] dialog table{white-space:normal}
body[data-ak-section=definitions] dialog fieldset>p.muted{font-size:13px;line-height:1.5}
body[data-ak-section=production] .ak-hmi-fields .hmi{gap:8px;padding:8px}
body[data-ak-section=production] .ak-hmi-fields .design-item{padding:8px}
body:is([data-ak-section=cut],[data-ak-section=production]) .ak-reading-help{font-size:13px;line-height:1.5;color:#526c77;margin:8px 0}
.ak-reading-help summary{cursor:pointer;padding:6px 0}
@media(max-width:1100px){
 #batch-app .ak-review-table,#definitions-content .ak-review-table,.ak-users-table,#batch-app .ak-review-table tbody,#definitions-content .ak-review-table tbody,.ak-users-table tbody{display:block!important;width:100%!important;min-width:0!important}
 #batch-app .ak-review-table thead,#definitions-content .ak-review-table thead,.ak-users-table thead{display:none!important}
 #batch-app .ak-review-table tbody tr,#definitions-content .ak-review-table tbody tr,.ak-users-table tbody tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px 0;border-bottom:1px solid #cbdadf}
 #batch-app .ak-review-table td,#definitions-content .ak-review-table td,.ak-users-table td{display:flex!important;flex-direction:column;gap:4px;padding:4px!important;border:0!important;min-width:0;white-space:normal!important;overflow-wrap:anywhere;text-align:right!important}
 #batch-app .ak-review-table td:before,#definitions-content .ak-review-table td:before,.ak-users-table td:before{content:attr(data-ak-label);font-size:12px;color:#526c77}
 #batch-app .ak-review-table td[hidden],#definitions-content .ak-review-table td[hidden],.ak-users-table td[hidden]{display:none!important}
 #batch-app td:is([data-ak-label="الإجراء"],[data-ak-label="المادة"],[colspan]),#definitions-content td:is([data-ak-label="وحدات المادة"],[data-ak-label="الإجراءات"]),.ak-users-table td:last-child{grid-column:1/-1}
 #batch-app td[data-ak-label="الإجراء"],#definitions-content td[data-ak-label="الإجراءات"]{flex-direction:row!important;flex-wrap:wrap;align-items:center}
 #batch-app td[data-ak-label="الإجراء"]:before,#definitions-content td[data-ak-label="الإجراءات"]:before{flex-basis:100%}
 .ak-row-meta{flex-basis:100%}
}
@media(max-width:700px){
 body[data-ak-section=cut] .filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .ak-document-meta,.ak-report-totals{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-ak-section=definitions] dialog .ak-review-table tr{gap:6px;padding:8px 0}
 body[data-ak-section=definitions] dialog .ak-review-table td{gap:2px!important}
 body[data-ak-section=definitions] dialog .ak-review-table td:first-child{grid-column:1/-1;flex-direction:row!important;align-items:center}
 body[data-ak-section=definitions] dialog .ak-review-table td:last-child{grid-column:1/-1;align-items:end}
 body[data-ak-section=definitions] dialog .ak-review-table td:last-child button{min-width:80px}
 body[data-ak-section=definitions] dialog .ak-review-table td input[type=radio]{width:20px;min-height:20px}
 body[data-ak-section=materials] .ak-editing .employee-save{display:grid!important;grid-template-columns:1fr 1fr}
 body[data-ak-section=materials] .ak-editing .employee-save>#total{grid-column:1/-1}
}
@media print{#akkel-shell,#akkel-sync-summary,#batch-title,#batch-message,.ak-report-back,[data-act=print]{display:none!important}.ak-batch-report{border:0!important;padding:0!important}.ak-report-help{display:none}.ak-batch-report .scroll{overflow:visible!important}.ak-batch-report table{display:table!important}.ak-batch-report thead{display:table-header-group!important}.ak-batch-report tbody{display:table-row-group!important}.ak-batch-report tr{display:table-row!important}.ak-batch-report td{display:table-cell!important}.ak-batch-report td:before{display:none!important}}

.ak-review-table td.ak-result{background:#eaf4ef!important;font-weight:700}

.ak-calculation{margin:10px 0 18px}.ak-calculation>summary{padding:10px;border:1px solid #cbdadf;border-radius:8px;cursor:pointer;font-size:14px}.ak-report-totals>div:last-child:nth-child(odd){grid-column:1/-1}
@media print{.ak-calculation>summary{display:none}.ak-calculation>.scroll{display:block!important}.ak-batch-report .ak-report-totals{display:flex;flex-wrap:wrap}}
@media(min-width:701px) and (max-width:1100px){
 #definitions-content .ak-review-table tbody,.ak-users-table tbody{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
 #definitions-content .ak-review-table tbody tr,.ak-users-table tbody tr{padding:10px!important;border:1px solid #d5e1e6;border-radius:8px}
 #definitions-content .ak-review-table td[data-ak-label="الاسم"]{font-weight:bold}
 #batch-app .ak-review-table tbody tr{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
 .ak-monthly-table,.ak-monthly-table tbody{display:block!important;width:100%!important;min-width:0!important}
 .ak-monthly-table thead{display:none!important}
 .ak-monthly-table tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:8px 0;border-bottom:1px solid #cbdadf}
 .ak-monthly-table td{display:block!important;min-width:0;white-space:normal!important;padding:6px!important;border:0!important}
 .ak-monthly-table td:first-child,.ak-monthly-table td[colspan]{grid-column:1/-1}
 .ak-monthly-table td:before{content:attr(data-ak-label);display:block;font-size:12px;color:#526c77}
}

/* AK_UNIFIED_EXPERIENCE: one visual language across employee tasks. */
:root{--ak-unified-main:#245d4d;--ak-unified-soft:#edf5f1;--ak-unified-ink:#193747;--ak-unified-border:#c9dcd4}
#akkel-shell{background:var(--ak-unified-ink)!important;color:white!important;padding:10px 18px!important}
#nav{background:var(--ak-unified-soft)!important;padding:8px 16px!important;gap:6px!important;border-bottom:1px solid var(--ak-unified-border)}
#nav button{background:white!important;color:var(--ak-unified-ink)!important;border:1px solid var(--ak-unified-border)!important;border-radius:8px!important;min-height:44px}
#nav button:is(.active,.primary){background:var(--ak-unified-main)!important;color:white!important}
body button.primary,body button[data-action=save],body button[data-action=new-reading]{background:var(--ak-unified-main)!important;color:white!important;border-color:var(--ak-unified-main)!important}
body :is(input,select,textarea){text-align:center}
body main{direction:rtl}
.ak-line-fields .ak-row-actions{grid-column:1/-1;display:flex;justify-content:flex-end;margin-top:4px}
.ak-row-actions button{min-width:100px;min-height:44px!important;margin:0!important}
.ak-help{margin:6px 0;color:#536d77;font-size:13px}.ak-help>summary{cursor:pointer;padding:6px 0}.ak-help p{margin:6px 0}
.ak-document-page .ak-review-table td{padding:8px!important}.ak-document-page .ak-review-table tr{gap:4px!important;padding:8px 0!important}
.ak-document-page .arrows[hidden]{display:none!important}
.ak-date-control{justify-content:center;min-width:0}.ak-date-control output{font-variant-numeric:tabular-nums;text-align:center;width:100%;font-size:14px}
.ak-date-control input[type=datetime-local]{position:absolute;inset:0;width:100%!important;height:100%!important;opacity:0;cursor:pointer}
.ak-task-pending #app,.ak-task-pending #nav{visibility:hidden!important}
#ak-task-wait{position:fixed;inset:180px 16px auto;text-align:center;background:white;border:1px solid var(--ak-unified-border);padding:24px;border-radius:10px;z-index:10;color:var(--ak-unified-ink)}
#ak-task-wait.ak-task-message{position:static;margin:12px 16px;padding:12px}
.ak-batch-required .actions{display:flex;gap:8px;flex-wrap:wrap}
body[data-ak-section=fuel] #app .card>p.muted{margin:8px 0}
@media(max-width:700px){
 #akkel-shell{padding:8px!important;gap:8px!important}#akkel-shell .ak-heading small{display:none!important}
 #akkel-sync-summary{margin:4px 8px!important;padding:5px 8px!important;font-size:13px!important;line-height:1.5!important}
 #nav{padding:6px 8px!important}#nav button{font-size:13px!important;padding:8px!important}
 .ak-document-meta{gap:6px!important}.ak-document-meta>div{padding:8px!important;min-height:0!important}
 body .card{margin-top:10px!important}
 body[data-ak-section=cut] [data-action=new-reading],body[data-ak-section=production] .card button.primary{min-height:44px;min-width:130px}
}

.ak-new-reading{min-width:160px;min-height:44px} @media(max-width:700px){.ak-new-reading{width:100%!important}}

@media(min-width:701px){.ak-line-fields .ak-row-actions{grid-column:auto;align-self:end;margin:0}}

/* Employee clarity: native controls, compact RTL presentation. */
body.ak-shared-raw-status .ak-raw-sync-fallback{display:none!important}
#batch-app .ak-clear-confirm{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;margin:14px 0;cursor:pointer;line-height:1.6;text-align:right}
#batch-app .ak-clear-confirm input[type=checkbox]{flex:0 0 24px;width:24px!important;height:24px!important;min-height:24px!important;margin:0}
.ak-document-filters{margin-top:8px}.ak-document-filters>summary,.ak-definition-extra>summary,.ak-unit-help>summary{cursor:pointer;min-height:40px;display:flex;align-items:center;font-weight:600;color:#285e52}
.ak-document-filters .grid{margin:8px 0}.ak-definition-extra{margin:12px 0}.ak-unit-help{margin-bottom:8px}
.ak-saved-document p:empty{display:none}
@media(max-width:700px){
 body[data-ak-section=packaging] .ak-saved-document .ak-responsive-table tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px!important;padding:10px 0!important;margin:0!important}
 body[data-ak-section=packaging] .ak-saved-document .ak-responsive-table td{display:flex!important;flex-direction:column!important;gap:2px!important;padding:4px!important;min-height:0!important;border:0!important}
 body[data-ak-section=packaging] .ak-saved-document .ak-responsive-table td:before{position:static!important;width:auto!important;margin:0!important;min-height:0!important}
 body[data-ak-section=packaging] .ak-saved-document .ak-responsive-table td:first-child{grid-column:1/-1;font-weight:700}
}
body[data-ak-section=packaging] .ak-saved-document .ak-responsive-table td[hidden]{display:none!important}

/* Employee finish: compact task groups, expandable reports and definition fields. */
body[data-ak-section=packaging] .ak-entry-group,body[data-ak-section=packaging] .ak-entry-setup{grid-column:1/-1;width:100%;margin:6px 0}
body[data-ak-section=packaging] .ak-entry-group h3{font-size:17px;margin:8px 0}
.ak-entry-setup>summary,.ak-month-panel>summary{cursor:pointer;min-height:44px;padding:10px 8px;font-weight:600;color:#245d4d}
.ak-entry-setup{border-top:1px solid #cbdadf}
.ak-month-panel{border:1px solid #cbdadf;border-radius:8px;margin:8px 0;padding:0 8px}
.ak-month-panel>h3{display:none}.ak-month-panel .scroll{margin:0 0 8px}
body[data-ak-section=definitions] dialog :is(label,.tank-grid label){margin:4px 0!important}
body[data-ak-section=definitions] dialog .tank-grid{gap:8px!important}
body[data-ak-section=definitions] dialog .tank-section{margin:8px 0;padding:10px}
body[data-ak-section=definitions] dialog label :is(input:not([type=checkbox]):not([type=radio]),select){margin-top:4px!important;min-height:44px}
body[data-ak-section=definitions] dialog .ak-review-table tr{padding:6px 0!important;gap:4px!important}
body[data-ak-section=fuel] .photo-button{display:inline-flex;align-items:center;justify-content:center;background:#edf4f8!important;color:#193447!important;border:1px solid #a7c0cf;min-height:44px;padding:8px 12px;border-radius:8px;cursor:pointer}
.ak-timestamp{font-variant-numeric:tabular-nums;white-space:nowrap}
@media print{.ak-month-panel>summary{font-size:16px}.ak-month-panel .scroll{overflow:visible}}

/* Monitoring polish: compact RTL presentation with unchanged operational controls. */
.ak-monitor-more,.ak-monitor-menu{display:contents}.ak-monitor-more>summary{display:none}
body[data-ak-section=cut] .photo{display:flex;flex-direction:column;align-items:stretch;gap:8px}
body[data-ak-section=cut] .photo>.photo-title{display:block;line-height:1.6;overflow-wrap:anywhere}
body[data-ak-section=cut] .photo>.missing{display:block;font-size:13px;line-height:1.5}
body[data-ak-section=cut] .photo>button{align-self:start;min-height:44px;margin:0}
body[data-ak-section=production] #sessionBar{border:0!important;background:transparent!important;padding:0!important;margin:0 0 4px!important}
body[data-ak-section=production] .session-tools>summary{min-height:36px;padding:7px 8px;font-size:12px;color:#40596b}
body[data-ak-section=production] .session-tools[open]{border:1px solid #c8d3da}
body[data-ak-section=production] .session-tools>b{display:block;padding:6px 8px;font-size:13px}
body[data-ak-section=production] .session-tools #offlineStatus{padding:6px 8px;font-size:12px}
body[data-ak-section=production] #stage-status{padding:8px 10px!important;margin:4px 0!important;font-size:13px}
.ak-sample-help{margin:6px 0;font-size:13px}.ak-sample-help>summary{cursor:pointer;min-height:36px;padding:8px 0}.ak-sample-help p{margin:4px 0 8px}
body[data-ak-section=production] .sample-result-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px 0!important;margin:8px 0!important;background:transparent!important}
body[data-ak-section=production] .sample-result-fields label{min-width:0}
body[data-ak-section=production] .sample-result-fields input{width:100%;min-width:0;box-sizing:border-box;text-align:center}
body[data-ak-section=users] label:has(>input[type=checkbox]){display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
body[data-ak-section=users] input[type=checkbox]{width:24px!important;height:24px!important;min-width:24px!important;flex:0 0 24px;margin:0;accent-color:var(--ak-unified-main,#176cc1)}
@media(max-width:700px){
 #nav.ak-monitor-nav{display:flex!important;align-items:stretch;gap:6px!important;padding:6px 8px!important}
 #nav.ak-monitor-nav>button{flex:1 1 90px!important;min-width:0!important;white-space:normal!important;line-height:1.4!important}
 #nav.ak-monitor-nav .ak-monitor-more{display:block;flex:1 1 90px;min-width:0}
 .ak-monitor-more>summary{display:flex;justify-content:center;align-items:center;box-sizing:border-box;min-height:44px;padding:8px 12px;cursor:pointer;border:1px solid var(--ak-unified-border,#b6c7d2);border-radius:8px;background:white;color:var(--ak-unified-ink,#193447);font-size:14px}
 .ak-monitor-more>summary::after{content:'⌄';margin-inline-start:8px}
 .ak-monitor-more:not([open])>.ak-monitor-menu{display:none}
 .ak-monitor-more[open]{flex-basis:100%!important}
 .ak-monitor-more[open]>.ak-monitor-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding-top:6px}
 #nav .ak-monitor-menu>button{width:100%;min-width:0!important;white-space:normal!important;margin:0!important;line-height:1.5!important}
 body[data-ak-section=production] .title{padding:7px 8px!important;margin:4px 0!important}
}

.ak-monitor-account>summary{cursor:pointer;padding:7px 8px;font-size:12px;min-height:36px;box-sizing:border-box}.ak-monitor-account>span{display:block;padding:6px 8px;font-size:13px}

/* Catalog polish: legible tank names and compact mobile catalogs. */
.ak-tank-table td:first-child{flex-direction:column;align-items:flex-start;overflow-wrap:normal!important;word-break:normal!important}
.ak-tank-table td:first-child:before{white-space:nowrap;flex-shrink:0}
#catalog-tools label{margin:8px 0 12px}#catalog-tools input{width:100%;text-align:center}
#catalog-cards{display:none}
@media(max-width:900px){
 .ak-catalog-table{display:none!important}#catalog-cards{display:grid;gap:8px}
 .ak-catalog-item{border:1px solid #cbdadf;border-radius:8px;background:white}
 .ak-catalog-item>summary{cursor:pointer;min-height:54px;padding:10px 12px;line-height:1.5}
 .ak-catalog-item>summary strong{margin-inline-end:8px}.ak-catalog-item>summary span{font-size:13px;color:#526c77}
 .ak-catalog-body{padding:0 12px 10px;border-top:1px solid #dce5eb}
 .ak-catalog-value{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 0;flex-wrap:wrap}
 .ak-catalog-value>span:first-child{font-size:13px;color:#526c77}.ak-catalog-value>span:last-child{overflow-wrap:anywhere;min-width:0}
 .ak-catalog-value button{min-height:44px;margin:2px}.ak-catalog-value small{display:block}
 #catalog-cards [hidden]{display:none!important}
}

.ak-catalog-table tr[hidden]{display:none!important}

/* Entry readiness: compact balances with readable quantities and native details. */
.ak-stock-pending{display:block;font-size:14px;line-height:1.6;font-weight:500}
@media(max-width:700px){
 body[data-ak-section=fuel] .ak-tank-table tbody .ak-tank-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:10px 0!important;margin:0!important}
 body[data-ak-section=fuel] .ak-tank-table .ak-tank-row>td{padding:2px 0!important;border:0!important;min-width:0}
 body[data-ak-section=fuel] .ak-tank-table .ak-tank-row>td:first-child{grid-column:1;grid-row:1;font-weight:700}
 body[data-ak-section=fuel] .ak-tank-table .ak-tank-row>td:nth-child(6){grid-column:1;grid-row:2;justify-content:flex-start!important;gap:5px}
 body[data-ak-section=fuel] .ak-tank-table .ak-tank-row>td:nth-child(6)[data-measured="true"]::after{content:'لتر';font-size:13px;margin-inline-start:5px}
 body[data-ak-section=fuel] .ak-tank-table .ak-tank-row>td:last-child{grid-column:2;grid-row:1 / span 2;align-self:center}
 body[data-ak-section=fuel] .ak-tank-table .ak-tank-row>td:first-child::before,
 body[data-ak-section=fuel] .ak-tank-table .ak-tank-row>td:nth-child(6)::before,
 body[data-ak-section=fuel] .ak-tank-table .ak-tank-row>td:last-child::before{display:none!important}
 body[data-ak-section=fuel] .ak-tank-table .ak-tank-expanded>td.ak-tank-secondary{grid-column:1 / -1}
}

/* AK_ENTRY_CONSISTENCY: one action palette across application sections. */
:root{--ak-primary:#156fc0;--ak-unified-main:#156fc0;--ak-unified-soft:#edf4fb;--ak-unified-border:#c5d4e0}
body{--ak-brand:#156fc0!important;--ak-ink:#193447!important;--ak-soft:#edf4fb!important;--ak-line:#c5d4e0!important}
body button,body .actions button,body .bar button,body .entry-operations button,body .production-apps button,body .ak-task-tabs button,body #akkel-shell button,body #nav button{background:#eaf3fc!important;color:#193447!important;border-color:#b8c8d5!important}
body button.primary,body button[data-action=save],body button[data-action=new-reading],body button[aria-pressed=true],body #nav button.active,body #nav button.primary{background:#156fc0!important;color:#fff!important;border-color:#156fc0!important}
body button:is(.danger,[data-action=delete],[data-action=delete-definition],[data-action=remove]){background:#fff!important;color:#a72424!important;border-color:#dba6a6!important}
body button:disabled{background:#e8edf1!important;color:#637281!important;border-color:#cbd4dc!important;opacity:1!important;cursor:not-allowed!important}
body button:focus-visible{outline:3px solid #b76b00;outline-offset:3px}
body button:not(:disabled):hover{filter:brightness(.96)}
body .ak-entry-setup>summary,body .ak-month-panel>summary,body .ak-document-filters>summary,body .ak-definition-extra>summary,body .ak-unit-help>summary{color:#193447}

body button:not(.primary):not([data-action=save]):not([data-action=new-reading]):not([aria-pressed=true]):not(.active):not(.danger):not([data-action=delete]):not([data-action=delete-definition]):not([data-action=remove]):not(:disabled){background:#eaf3fc!important;color:#193447!important;border-color:#b8c8d5!important}
body button:not(:disabled):is(.danger,[data-action=delete],[data-action=delete-definition],[data-action=remove]){color:#a72424!important;border-color:#dba6a6!important}
body :is(input,select)[aria-invalid=true]{border:2px solid #a72424!important}

body .ak-task-tabs button[aria-pressed=true]{background:#156fc0!important;color:#fff!important;border-color:#156fc0!important}
body[data-ak-section] :is(input,select)[aria-invalid=true]{border:2px solid #a72424!important;outline:2px solid #a72424!important;outline-offset:1px}
body .entry-total,body .ak-document-total,body .ak-document-meta>div,body .ak-report-totals>div{background:#edf4fb!important;color:#193447}

/* Compact field aids; logical properties preserve Arabic direction. */
.ak-choice-open{min-height:34px!important;padding:4px 12px!important;margin-block-start:4px;justify-self:start;font-size:13px!important}
.ak-choice-dialog{width:min(460px,calc(100vw - 24px));max-height:85dvh;box-sizing:border-box;direction:rtl;padding:16px;border:1px solid #ccd8e6;border-radius:14px}
.ak-choice-dialog input{width:100%;box-sizing:border-box;margin-block:8px;text-align:center}
.ak-choice-results{display:grid;gap:5px;max-height:52dvh;overflow:auto;margin-block:8px}
.ak-choice-results button{width:100%;text-align:right;white-space:normal}
.ak-choice-results button[aria-pressed=true]{border-color:#156fc0;background:#edf5fc;color:#17446c}
.ak-required{color:#a72424;font-size:12px}
.ak-field-limit{display:block;font-size:12px;color:#52667c;line-height:1.5;margin-block-start:3px;white-space:normal}
.ak-unit-panel{border:1px solid #d6e1ed;border-radius:10px;padding:9px;margin-block:10px}
.ak-unit-panel>summary{cursor:pointer;font-weight:700;color:#17446c}
.ak-next-group{margin-block-start:8px}
body[data-ak-section=materials] #total.summary,body[data-ak-section=materials] .entry-total{background:#edf5fc;color:#17446c;border-color:#ccdcec}
#number-pad .error:empty{display:none}

.ak-inventory-adder{align-items:flex-end!important;gap:10px!important}.ak-inventory-adder>button{align-self:flex-end;min-height:44px;max-height:48px;margin-block-end:0}.ak-inventory-adder>label{flex:1;min-width:160px}
body[data-ak-section=fuel] #app .operation-row{align-items:start}
body[data-ak-section=fuel] #app .operation-row>label{line-height:24px}
body[data-ak-section=fuel] #app .operation-row .tank-caption{line-height:24px}

/* Shared control geometry: labels and optional help never offset sibling controls. */
body[data-ak-section] :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=range]),select){box-sizing:border-box;min-height:48px;height:48px;line-height:24px;padding-block:10px;text-align:center}
body[data-ak-section] :is(.header-fields,.ak-line-fields,.fields,.form-grid) :is(input,select){margin-block:0}
body[data-ak-section] .header-fields>label{display:flex;flex-direction:column;gap:6px;line-height:24px}
.ak-entry-field{display:flex;flex-direction:column;gap:6px;align-self:start}
.ak-entry-field>label{min-height:24px;line-height:24px;margin:0}
.ak-entry-field>div>label{display:flex;flex-direction:column;gap:6px;line-height:24px}
.ak-entry-field :is(input,select){margin-block:0!important}
.ak-field-action button{height:48px;margin:0}
.ak-line-fields>label{line-height:24px!important;gap:6px!important}
.ak-field-title{line-height:24px;min-height:24px}
.ak-direct-picker>label[hidden]{display:none!important}
.ak-direct-picker{justify-content:flex-start;min-height:48px}
.ak-direct-picker>button{margin:0;min-height:48px}
.ak-entry-field.ak-field-action{padding-block-start:0;align-self:end}
.ak-line-fields [data-total],.ak-line-fields [data-liters]{min-height:48px;box-sizing:border-box;line-height:24px;padding-block:12px}
body[data-ak-section=definitions] dialog td{vertical-align:top}
body[data-ak-section=definitions] dialog td :is(input,select){margin-block:0}
body[data-ak-section] .ak-date-control,body[data-ak-section=materials] .date-control{height:48px;min-height:48px;box-sizing:border-box}
body[data-ak-section=materials] .entry-total{min-height:48px;box-sizing:border-box}
/* Tank reference is help below the control, so wrapping does not move its top. */
body[data-ak-section=fuel] #app .operation-row .tank-caption{display:contents}
body[data-ak-section=fuel] #app .operation-row .tank-caption small{order:3;line-height:1.5;white-space:normal}

/* Row actions stay attached to their material, outside the field grid. */
.ak-entry-line.ak-line-with-actions{position:relative}
.ak-entry-line.ak-line-with-actions>summary{padding-inline-end:112px!important;min-height:52px;box-sizing:border-box}
.ak-entry-line.ak-line-with-actions>summary>.ak-row-actions{position:absolute;inset-inline-end:8px;top:5px;margin:0;display:flex}
.ak-entry-line.ak-line-with-actions>summary>.ak-row-actions button{min-width:90px;min-height:42px!important;height:42px;padding:6px 10px!important;font-size:13px}
#ak-reset-admin{margin:12px 16px;max-width:calc(100% - 32px)}

.ak-entry-line.ak-line-with-actions>summary>.ak-row-actions button{color:#a52a25;border-color:#e1b5b2;background:#fff}

/* Unified accounting document lists */
.ak-accounting-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-block:12px}.ak-accounting-filters label{flex:1;min-width:180px}.ak-accounting-count{margin:0;align-self:center;font-size:14px}.ak-accounting-back{margin:12px}.ak-accounting-hub .production-apps{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-block:18px}.ak-accounting-list{table-layout:auto!important;min-width:0!important;width:100%}.ak-accounting-list td,.ak-accounting-list th{word-break:normal!important;overflow-wrap:normal!important}.ak-accounting-list td button,.ak-accounting-list .ak-quantity,.ak-accounting-list .ak-timestamp{white-space:nowrap!important}.ak-documents-card .documents-table tr.document-row>td{background:white!important}.ak-documents-card .documents-table td:first-child{white-space:nowrap}.ak-documents-card .documents-table td:nth-child(3){overflow-wrap:anywhere!important;min-width:120px}.ak-documents-card .documents-table td:last-child{min-width:70px}.ak-accounting-list tr[hidden]{display:none!important}
@media(max-width:1100px){.ak-documents-card .documents-table thead{display:none!important}.ak-documents-card .documents-table,.ak-documents-card .documents-table tbody{display:block!important}.ak-documents-card .documents-table tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid #cddde7;padding:10px 0}.ak-documents-card .documents-table tr[hidden]{display:none!important}.ak-documents-card .documents-table td{display:flex!important;flex-direction:column;gap:5px;min-width:0!important;padding:8px!important;white-space:normal!important}.ak-documents-card .documents-table td:before{content:attr(data-ak-label);font-size:12px;color:#546b7a}.ak-documents-card .documents-table td:last-child{grid-column:1/-1;align-items:flex-end}.ak-documents-card .documents-table td:last-child:before{display:none}.ak-accounting-filters label{min-width:130px}}

@media(min-width:1101px){.ak-documents-card .documents-table td:first-child{white-space:nowrap!important;min-width:100px}.ak-documents-card .documents-table td:nth-child(7){max-width:240px}.ak-documents-card .documents-table td small{display:block}.ak-documents-card .documents-table td:nth-child(6){min-width:75px}}

/* AK_VISUAL_LANGUAGE: shared reference palette and typography. */
:root{--ak-unified-main:#156fc0;--ak-unified-soft:#edf4fb;--ak-unified-ink:#193447;--ak-unified-border:#bfd0dc;--ak-font:Arial,"Helvetica Neue",sans-serif;--ak-text:16px;--ak-label:14px;--ak-note:13px}
body{font-size:var(--ak-text)!important;color:var(--ak-ink)!important}
body :is(button,input,select,textarea){font-family:var(--ak-font)!important}
body[data-ak-section] :is(button,input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:var(--ak-text)!important}
body :is(h1,h2){font-size:22px!important;line-height:1.45!important}
body h3{font-size:18px!important;line-height:1.5!important}
body label{font-size:var(--ak-label)!important}
body :is(.muted,.ak-help,small){font-size:var(--ak-note)!important;line-height:1.5}
body :is(th,td){font-size:var(--ak-text)!important}
body :is(.ak-work-home,.ak-accounting-hub,.production-portal) .production-apps button,
body .ak-work-home .production-apps button.primary,
body .ak-accounting-hub button.primary,
body .production-portal .production-apps button.primary{
 background:#eaf3fc!important;color:var(--ak-ink)!important;border:1px solid var(--ak-border)!important;
 font-size:var(--ak-text)!important;font-weight:600!important;min-height:52px!important;padding:10px 14px!important;line-height:1.5!important
}
body :is(.ak-work-home,.ak-accounting-hub) .production-apps{gap:10px!important;margin-block:12px!important}
body :is(.ak-work-home,.ak-accounting-hub) h2{font-size:18px!important}
body .ak-home-group h2,body .ak-home-group summary{color:var(--ak-ink)!important}
body :is(.actions,.bar,.card,.panel,dialog) button:not(.primary):not(.danger):not(.active):not(.chosen):not(:disabled):not([data-action=delete]):not([data-action=delete-definition]):not([data-action=remove]):not([data-action=save]):not([data-action=new-reading]){background:#eaf3fc!important;color:var(--ak-ink)!important;border-color:var(--ak-border)!important}
body :is(.summary,.ak-document-total,.ak-result,.ak-review-table td.ak-result){background:#f1f5f8!important;color:var(--ak-ink)!important}
body :is(.ledger-table,.documents-table) tr.document-row,
body :is(.ledger-table,.documents-table) tr.document-row>td{background:#fff!important}
body :is(.ledger-table,.documents-table) tr.document-row:hover>td{background:#f4f8fc!important}
body .ledger-opening,body .ledger-opening>td{background:#f1f5f8!important}
body :is(table th){background:#edf4fb!important}
body .ak-accounting-hub{background:#fff!important}
body :is(input,select,textarea){accent-color:var(--ak-primary)}
/* Machine diagrams keep their numeric hierarchy and PV/ST/TD signal colors. */
body :is(.hmi .screen-value,.compact-number){font-size:24px!important}
body .hmi :is(label,.unit-mark){font-size:12px!important}
@media(max-width:700px){body #nav button{font-size:14px!important}body :is(h1,h2){font-size:20px!important}body .ak-heading strong{font-size:18px!important}}
body .ledger-table td[dir=ltr],body .ledger-table td.ledger-running,body .ledger-table td button{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
body .ledger-table td:last-child button{min-width:64px;padding-inline:10px!important}
body .ledger-table td:first-child{min-width:98px}
body[data-ak-section] button:is(.danger,[data-action=delete],[data-action=delete-definition],[data-action=remove]){background:#fff!important;color:#a72424!important;border-color:#dba6a6!important}
body[data-ak-section] button:disabled{background:#e8edf1!important;color:#637281!important;border-color:#cbd4dc!important;cursor:not-allowed!important}

/* Workflow review: visible controls, quieter forms, stable page header. */
body button:not(.primary):not(.active):not([aria-pressed=true]):not(.fan){background:#edf5fc;border-color:#b8d0e5;color:#173c5b}
body button.primary,body button.active,.ak-task-tabs button[aria-pressed=true]{background:#1769ad!important;border-color:#1769ad!important;color:#fff!important}
body.ak-login-screen #ak-home,body.ak-login-screen .ak-shell-more,body.ak-home-screen #ak-home{display:none!important}
#akkel-shell{position:relative!important;top:auto!important;min-height:68px;overflow:visible!important}
body[data-ak-section=materials] .unload-header{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body[data-ak-section=materials] .stock-entry{grid-template-columns:minmax(260px,2.5fr) repeat(3,minmax(100px,1fr)) auto;align-items:end}
body[data-ak-section=materials] .stock-entry select[data-stock]{width:100%;max-width:none;white-space:normal}
.ak-entry-line[open]>.ak-line-fields{padding:12px}
.ak-entry-line[open]>summary .ak-line-summary{display:none}
body button.remove-entry,body button[data-action=delete],body button[data-action=cancel]{background:#fff0f0!important;color:#9c3030!important;border-color:#e7baba!important;min-width:44px}
body .document-heading.doc-in,body .document-heading.doc-out,body .document-heading.doc-posted,body .document-heading.doc-audited{background:#f2f6fa!important;color:#173c5b!important;border-color:#c4d5e4!important}
.ak-opening-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 0;border-bottom:1px solid #dae4ed}
.ak-opening-link{background:#edf5fc;border:1px solid #b8d0e5;padding:10px 16px;border-radius:8px;color:#173c5b;text-decoration:none}
.ak-opening-preview{padding:16px;border:1px solid #b8d0e5;background:#f5f9fd;border-radius:10px}
.ak-opening-preview button{margin:8px 4px}
#duplicate-warning:empty,#stock-warning:empty{display:none}
#duplicate-warning:not(:empty){background:#fff7dc;color:#725916;border:1px solid #e7d59a;padding:10px;border-radius:8px}
#numericPad,#cutNumberPad,.numeric-pad,#number-pad,#ak-number,.pin-keys,#keys{display:none!important}
@media(max-width:700px){body[data-ak-section=materials] .unload-header{grid-template-columns:1fr!important}body[data-ak-section=materials] .stock-entry{grid-template-columns:1fr 1fr}.stock-entry>label:first-child{grid-column:1/-1}#akkel-shell .ak-shell-title{white-space:normal!important}}
body[data-ak-section] button:not(.primary):not(.active):not([aria-pressed=true]):not(.fan):not(.remove-entry):not([data-action=delete]):not([data-action=cancel]){background:#eaf3fc!important;border-color:#afcbe2!important;color:#173c5b!important}
body[data-ak-section] #app.ak-editing~nav,body:has(#app.ak-editing) #nav{display:none!important}
#akkel-sync-summary{font-size:12px!important;line-height:1.5!important;padding:6px 12px!important;margin:4px auto!important}
@media(max-width:700px){body[data-ak-section=materials] #app .doc-header.unload-header{grid-template-columns:1fr!important}.ak-line-name{font-size:15px!important}}

/* Saved-operation summary: quiet detail, two clear next steps. */
.ak-save-result{max-width:900px;margin-inline:auto}.ak-save-result h2{margin-bottom:8px}.ak-save-state{padding:12px;border-radius:8px;background:#eaf3fc;line-height:1.7}.ak-saved-lines{list-style:none;padding:0;margin:16px 0}.ak-saved-lines li{display:flex;justify-content:space-between;gap:16px;padding:12px 4px;border-bottom:1px solid #dce5ed}.ak-saved-lines small{display:block;color:#536777;margin-top:4px}.ak-save-next{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.ak-save-next button{min-height:48px;flex:1}.ak-save-options{margin-top:16px;border-top:1px solid #dce5ed;padding-top:16px}.ak-save-options summary{cursor:pointer}.ak-save-options button{margin:8px 0 0 8px;min-height:44px}@media(max-width:480px){.ak-save-next{flex-direction:column}.ak-saved-lines li{font-size:15px}}

.ak-focused-task #nav{display:none!important}#ak-flow-back{display:block;margin:12px auto;min-height:44px}.ak-opening-page #tabs,.ak-opening-page #definitions-content,.ak-opening-page #catalog-tools,.ak-opening-page #catalog-cards{display:none!important}.ak-opening-page #opening-hub>summary{display:none}.ak-opening-page #opening-hub{margin-top:16px}.ak-opening-row{gap:16px;flex-wrap:wrap}.ak-opening-link{min-height:44px;display:inline-flex;align-items:center}

#akkel-shell #akkel-sync-summary{color:#edf6ff!important;background:transparent!important;border:0!important;margin:4px 0 0!important;padding:0!important;max-width:100%;font-size:12px!important;line-height:1.4!important}#akkel-shell .ak-connection-line{display:flex;align-items:center;gap:7px}.ak-connection-lamp{width:9px;height:9px;border-radius:50%;flex:0 0 9px;background:#f4c84c}#akkel-sync-summary[data-tone=green] .ak-connection-lamp{background:#51da8a}#akkel-sync-summary[data-tone=red] .ak-connection-lamp{background:#ff6b6b}#akkel-shell #akkel-sync-summary .ak-last-update{display:block!important;font-size:11px;color:#cbdde9;margin-top:2px}#akkel-shell .ak-connection-warning{font-size:12px;margin:3px 0}#akkel-shell #akkel-sync-summary button{font-size:11px;min-height:26px;padding:3px 6px}@media(max-width:700px){#akkel-shell .ak-heading{min-width:0;flex:1}#akkel-shell #akkel-sync-summary{font-size:11px!important}#akkel-shell #akkel-sync-summary .ak-last-update{font-size:10px!important}}

#ak-flow-back[hidden]{display:none!important}

.ak-records-workspace #nav,.ak-records-workspace [data-action=new],.ak-records-workspace [data-action=start]{display:none!important}

.ak-home-group[data-home-tab="السجلات"]>h2,.ak-home-group[data-home-tab="الأرصدة"]>h2{display:none}

/* Consistent reading workspaces and compact contextual return. */
.ak-review-workspace #nav{display:none!important}
#akkel-shell .ak-shell-actions{align-items:center;flex-wrap:wrap;gap:8px}
#akkel-shell #ak-flow-back{display:inline-flex;align-items:center;justify-content:center;margin:0;min-height:44px;max-width:100%}
body[data-ak-section] #app,body[data-ak-section] #batch-app{max-width:1280px;margin-inline:auto;padding-inline:16px;box-sizing:border-box}
body[data-ak-section] #app>.card,body[data-ak-section] #app>section.card{width:100%;margin-inline:0;text-align:start}
body[data-ak-section] #app h2,body[data-ak-section] #app h3{text-align:start}
.ak-records-card #document-filters{margin-block:8px;font-size:14px}
.ak-records-card #document-filters summary{cursor:pointer}
.ak-document-list th,.ak-document-list td{text-align:start!important;vertical-align:middle}
.ak-document-list td:last-child{white-space:nowrap!important}
@media(max-width:700px){body[data-ak-section] #app,body[data-ak-section] #batch-app{padding-inline:10px}#akkel-shell #ak-flow-back{font-size:13px;padding:8px}}
@media(min-width:701px){.ak-document-list td:first-child{white-space:nowrap!important;min-width:100px}.ak-records-table td:nth-child(3){white-space:nowrap!important}}

/* V5: stable shared layout and accountant workspace. */
html{scrollbar-gutter:stable}
.ak-sync-slot{min-height:54px;min-width:0}
#akkel-shell .ak-sync-slot #akkel-sync-summary{margin:0!important;padding:0!important;min-height:54px;box-sizing:border-box}
#akkel-shell .ak-heading>small{display:none!important}
#akkel-shell .ak-connection-line{min-height:24px;white-space:nowrap}
#akkel-shell .ak-last-update{display:block!important;min-height:20px;font-size:11px!important;white-space:nowrap}
.ak-raw-sync-fallback{display:none!important}
.ak-accounting-filters{display:flex!important;align-items:flex-end!important;gap:12px!important;flex-wrap:wrap;margin:12px 0!important}
.ak-accounting-filters>label{display:flex!important;flex-direction:column;gap:6px!important;flex:1 1 200px;margin:0!important;max-width:none!important;min-width:0!important;line-height:1.5}
.ak-accounting-filters>label>input,.ak-accounting-filters>label>select{width:100%!important;box-sizing:border-box;height:44px!important;min-height:44px!important;margin:0!important}
.ak-accounting-filters .ak-accounting-count{align-self:flex-end!important;min-height:44px;margin:0!important;display:flex;align-items:center}
#app table th,#app table td{text-align:start;vertical-align:middle}
#app table td[dir=ltr]{text-align:start;direction:ltr}
.ak-accounting-section{padding-block:12px;border-block-start:1px solid #d8e1eb}
.ak-accounting-section [data-queue-note]{min-height:24px;margin:8px 0}
.ak-accounting-section [data-queue-count]{display:inline-block;min-width:2ch;font-variant-numeric:tabular-nums}
body.ak-accounting-workspace #nav,body.ak-accounting-workspace #ak-batches,
body.ak-accounting-workspace [data-action=new],body.ak-accounting-workspace [data-action=start],
body.ak-accounting-workspace [data-action=document-nav],body.ak-accounting-workspace .arrows,
body.ak-accounting-workspace #document-filters{display:none!important}
.ak-tank-details summary{cursor:pointer;color:#156fc0;white-space:nowrap}
.ak-tank-details p{margin:6px 0}
@media(max-width:700px){
 #akkel-shell{flex-wrap:wrap!important;align-items:center!important}
 #akkel-shell .ak-heading{flex:1 1 calc(100% - 64px)!important}
 #akkel-shell .ak-shell-actions{width:100%!important;flex-wrap:wrap!important;justify-content:flex-start}
 #akkel-shell .ak-shell-actions>button{flex:0 1 auto!important;min-width:0!important;font-size:12px!important}
 #akkel-shell .ak-last-update{font-size:10px!important}
 .ak-accounting-filters>label{flex-basis:140px}
}
body[data-ak-section] #app table td[dir=ltr]{text-align:right!important}
body[data-ak-section=fuel] #app .summary>div{background:#edf4fb!important;color:#193447;border-radius:8px;padding:10px;min-width:0}
body[data-ak-section=fuel] #app .summary h3{font-variant-numeric:tabular-nums;line-height:1.5}
.ak-task-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}
.ak-work-home .ak-batch-card{min-height:94px!important;box-sizing:border-box}
.ak-home-load-note{min-height:24px;line-height:24px;margin:4px 0!important}
.ak-home-batch-actions{min-height:112px}
@media(max-width:700px){.ak-task-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.ak-work-home .ak-batch-card{min-height:100px!important}}

/* No local navigation controls are created after cancellation. */
#nav:empty{display:none!important}
body.ak-cancelled-workspace #ak-batches{display:none!important}

/* Logout is a direct header action; an empty utility menu has no trigger. */
.ak-shell-more[hidden]{display:none!important}
body.ak-login-screen #ak-logout{display:none!important}
@media(max-width:700px){#akkel-shell #ak-logout{min-width:0;padding:8px;font-size:13px}}

/* v8: bounded catalogs, aligned permissions, compact contextual navigation. */
body[data-ak-section=definitions] main,body[data-ak-section=users] main{width:100%;min-width:0;max-width:1340px;box-sizing:border-box}
#definitions-content{min-width:0;max-width:100%;box-sizing:border-box}
#definitions-content>.scroll{min-width:0;max-width:100%;overflow-x:auto}
#definitions-content table{max-width:none}
#catalog-tools{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-block:12px}
#catalog-tools label{flex:1 1 220px;min-width:0;margin:0}
#catalog-count{margin:0 0 12px;white-space:nowrap}
#catalog-tools input,#catalog-tools select{width:100%;box-sizing:border-box}
.ak-permission-groups{display:block!important}
.ak-permission-row{display:grid;grid-template-columns:minmax(180px,1fr) 2fr;gap:16px;align-items:center;padding:12px 0;border-bottom:1px solid #d5e1e6}
.ak-permission-name small{display:block;color:#557184;font-size:13px;line-height:1.6;margin-top:5px}
.ak-permission-row .ak-permission-actions{grid-template-columns:repeat(6,minmax(0,1fr));margin:0;align-items:center}
.ak-permission-row .ak-permission-actions label{flex-direction:column;justify-content:center;font-size:14px;gap:5px}
.ak-permission-na{text-align:center;color:#82939e}
body[data-ak-section=users] #tabs [aria-selected=true]{background:#156fc0!important;color:white!important;border-color:#156fc0!important}
body[data-ak-section=users] .page-heading h1{margin-block:8px}
body[data-ak-section=users] #back{margin:0;min-height:44px}
@media(max-width:700px){.ak-permission-row{grid-template-columns:1fr;gap:10px}.ak-permission-row .ak-permission-actions{gap:4px}.ak-permission-row .ak-permission-actions label{font-size:12px}body[data-ak-section=users] #akkel-shell{flex-wrap:wrap!important}body[data-ak-section=users] .ak-shell-actions{flex-wrap:wrap!important}}
.ak-accounting-filters{margin-block:12px!important}

/* Reset is an explicit device action; the shared prompt never deletes local work. */
#akkel-reset-required{box-sizing:border-box;width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #b7cde0;border-radius:16px;padding:24px;color:#19344c;background:#fff;line-height:1.8;text-align:right}
#akkel-reset-required::backdrop{background:rgb(15 35 55 / 55%)}
#akkel-reset-required h2{font-size:1.25rem;margin:0 0 12px}
#akkel-reset-required a{display:inline-block;padding:10px 18px;border-radius:8px;background:#146697;color:#fff;text-decoration:none;font-weight:700}

/* Product allocation reports: one selected material, bounded RTL tables. */
.ak-product-report,.ak-product-list{min-width:0;overflow:hidden}.ak-product-report .actions{display:flex;flex-wrap:wrap;gap:8px}.ak-product-report h2{overflow-wrap:anywhere}.ak-product-report table td,.ak-product-list table td{vertical-align:middle}.ak-allocation-state{font-weight:700;color:#805000}
@media print{.ak-product-report .actions{display:none!important}.ak-product-report{border:0;box-shadow:none}.ak-product-report .scroll{overflow:visible}.ak-product-report table{width:100%;min-width:0;font-size:10pt}.ak-product-report tr{break-inside:avoid}}

.ak-batch-sections{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.ak-product-report .ak-report-totals{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}.ak-product-report .ak-report-totals>div{grid-column:auto!important;min-width:0}.ak-accounting-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-block:16px}.ak-accounting-controls input{width:100%;box-sizing:border-box}@media print{.ak-accounting-controls,.ak-calculation{display:none!important}}

.ak-batch-row-actions{display:flex;flex-wrap:wrap;gap:6px}.ak-batch-row-actions button{margin:0!important}.ak-signed{font-variant-numeric:tabular-nums}.ak-negative{color:#a51d28;font-weight:700}.ak-positive{color:#805200;font-weight:700}.ak-review-warning,.ak-post-blockers{border-inline-start:4px solid #b05d00;background:#fff7e8;padding:12px;margin-block:12px}.ak-post-blockers li{margin-block:6px}.ak-boundary-batch{font-size:1.1em}#batch-start-reason{font-size:.9em;color:#526879}
/* Unified document reading and actions. */
.ak-direct-saved{max-width:1100px;margin-inline:auto}.ak-direct-saved>.ak-save-state{margin:6px 0;padding:6px 10px}
.ak-material-lines{list-style:none;padding:0;margin:10px 0}.ak-material-lines li{padding:10px 4px;border-bottom:1px solid #dce5ed;line-height:1.7;overflow-wrap:anywhere;font-weight:600}
.ak-document-page .ak-document-meta{gap:8px;margin:10px 0}.ak-document-page .ak-document-meta>div{padding:8px 10px}.ak-document-page .card{margin:0;padding:14px}
body .ak-document-page>.ak-document-actions{display:flex!important;position:static!important;flex-wrap:wrap!important;align-items:center;gap:6px!important;margin:0 0 10px!important;padding:0 0 10px!important;border-bottom:1px solid #dce5ed}
body .ak-document-page>.ak-document-actions button{flex:0 0 auto!important;width:auto!important;min-width:44px;min-height:44px;margin:0!important}
body .ak-document-page>.ak-document-actions .arrows,body .ak-document-page>.ak-document-actions .document-arrows{display:flex!important;flex:0 1 auto!important;flex-wrap:wrap!important;width:auto!important;gap:6px!important}
.ak-back-icon{font-size:22px!important;font-weight:bold}.ak-entry-line>summary .ak-line-name{flex:1;white-space:normal;line-height:1.7}.ak-entry-line>summary .ak-line-summary:empty{display:none}
@media print{.ak-document-actions,.ak-save-state{display:none!important}}

/* Unified records and document navigation. */
body .ak-document-actions{justify-content:center!important;direction:rtl;gap:6px}
body .ak-document-actions .ak-back-icon{font-size:inherit}
.ak-click-row{cursor:pointer}.ak-click-row:hover{background:#edf5fc}.ak-click-row:focus-visible{outline:2px solid #347fb6;outline-offset:-2px}
body .ak-accounting-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px}
body .ak-accounting-filters>label{flex:1 1 150px;min-width:0}
body .ak-accounting-count{flex-basis:100%;margin:0}

body .ak-records-card #document-filters{display:none}
body[data-ak-section] .ak-accounting-filters .ak-date-control{height:44px!important;min-height:44px!important;padding:8px 10px;box-sizing:border-box}
body[data-ak-section] .ak-accounting-filters .ak-date-control input{height:44px!important;min-height:44px!important;box-sizing:border-box;margin:0!important;top:-1px}

/* One stable document toolbar for entry and saved records. */
.ak-entry-toolbar{display:flex!important;justify-content:center!important;align-items:center;gap:6px;flex-wrap:wrap;direction:rtl;position:static!important;margin:0 0 16px!important;padding:10px 0!important;border-bottom:1px solid #d3e1eb}.ak-entry-toolbar button{min-height:44px}.ak-entry-toolbar button:disabled{opacity:.45;cursor:default}

#akkel-shell.ak-has-document-toolbar{display:flex!important;flex-wrap:wrap!important;gap:12px!important}
#akkel-shell>.ak-document-actions{order:5;flex:1 0 100%;display:flex!important;justify-content:center!important;align-items:center;flex-wrap:wrap;gap:6px!important;margin:0!important;padding:8px 0 0!important;border:0!important;position:static!important;background:transparent!important}
#akkel-shell>.ak-document-actions button{flex:0 0 auto!important;min-height:44px;min-width:44px;width:auto!important;margin:0!important;background:#eaf4ff;color:#173d55;border:1px solid #afcbe1;border-radius:8px;padding:8px 12px}
#akkel-shell>.ak-document-actions button.primary{background:#247ab5;color:white}
#akkel-shell>.ak-document-actions button[data-action=delete]{color:#b42318}
@media(min-width:1350px){#akkel-shell.ak-has-document-toolbar{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto auto;direction:rtl}#akkel-shell>.ak-logo{grid-column:1}#akkel-shell>.ak-heading{grid-column:2}#akkel-shell>.ak-shell-actions{grid-column:4}#akkel-shell>.ak-document-actions{grid-column:1/-1}}
@media(max-width:700px){#akkel-shell>.ak-document-actions{gap:4px!important}#akkel-shell>.ak-document-actions button{font-size:12px;padding:7px 9px}}

body.ak-records-workspace #akkel-shell .ak-document-actions [data-action=new],body.ak-records-workspace #akkel-shell .ak-document-actions [data-action=start],body.ak-accounting-workspace #akkel-shell .ak-document-actions [data-action=new],body.ak-accounting-workspace #akkel-shell .ak-document-actions [data-action=start]{display:inline-flex!important}
#akkel-shell>.ak-document-actions button:disabled{opacity:.42!important;cursor:default!important}
#akkel-shell>.ak-document-actions button[data-action=save],#akkel-shell>.ak-document-actions button.primary{background:#1978ba!important;color:#fff!important;border-color:#70b5e4!important}

/* Document books retain visible category headings. */
.ak-home-group[data-home-tab="السجلات"]>h2{display:block}

.ak-home-row-actions{display:flex;gap:6px;flex-wrap:wrap}.ak-home-row-actions button{width:auto!important;min-height:44px}.ak-home-batch-actions .production-apps{display:flex;justify-content:center}

.ak-batch-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.ak-batch-summary-heading h2{margin:8px 0}.ak-batch-summary-heading button{width:auto;min-height:42px}.ak-batch-summary-heading .ak-home-row-actions{justify-content:flex-start}.ak-batch-book-filters{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.ak-batch-book-filters label{flex:1;min-width:150px}.ak-batch-book-filters input,.ak-batch-book-filters select{width:100%;box-sizing:border-box}

.ak-report-document{width:min(1000px,90vw);max-height:85vh;overflow:auto;border:1px solid #bcd0df;border-radius:12px}.ak-pack-report .fields{display:flex;flex-wrap:wrap;gap:12px}.ak-pack-report .fields label{flex:1;min-width:150px}

/* Batch section uses the same grid as the other work sections. */
.ak-home-batch-actions{min-height:0}.ak-home-batch-actions .ak-batch-summary-heading{display:block}.ak-home-batch-actions .production-apps{display:grid;justify-content:normal}.ak-home-batch-actions .production-apps button{width:100%!important}.ak-home-load-note:empty{display:none}.ak-voucher-modes{display:flex;gap:8px;flex-wrap:wrap;margin-block:12px}.ak-voucher-modes [aria-pressed=true]{background:#dcecff;border:2px solid #376894}.ak-manufacturing-product{margin-block:16px;padding-block:8px;border-bottom:1px solid #cad9e7}.ak-meal{background:#edf4fb;padding:10px}.ak-manufacturing-product h4{margin-block:10px}

@media print{.ak-batch-report:has(.ak-batch-voucher)>:not(h2):not(.ak-meal):not(.ak-batch-voucher){display:none!important}.ak-voucher-modes,.ak-accounting-controls{display:none!important}.ak-manufacturing-product{break-inside:avoid}}

/* Entry-focused phones/tablets only; desktop remains the existing workspace. */
.ak-touch-only{display:none!important}
@media screen and (max-width:1024px){
 .ak-touch-only{display:block!important}.ak-desktop-only{display:none!important}
 #akkel-shell{padding:8px 12px!important;gap:8px!important}
 #akkel-shell .ak-logo{width:36px!important;height:36px!important}
 #akkel-shell .ak-heading>strong{font-size:16px!important}
 #akkel-shell .ak-heading>small{display:none!important}
 #akkel-shell #akkel-sync-summary .ak-last-update{display:none!important;white-space:normal!important}
 #akkel-shell #akkel-sync-summary.ak-status-expanded .ak-last-update{display:block!important}
 #akkel-shell .ak-connection-line{cursor:pointer;min-height:28px}
 #akkel-shell .ak-connection-line:focus-visible{outline:2px solid white;outline-offset:2px}
 #akkel-shell .ak-document-actions{padding:4px 0!important;margin:0!important;gap:6px!important}
 #akkel-shell .ak-document-actions button{min-height:44px!important}
 .ak-touch-entry #akkel-shell .ak-shell-actions{display:none!important}
 .ak-touch-entry #akkel-shell .ak-document-actions button:not([data-action=save]):not([data-action=discard]):not([type=submit]):not([data-act=cancel]){display:none!important}
 .ak-touch-entry #akkel-shell .ak-document-actions{width:100%;display:flex!important;justify-content:center!important}
 .ak-touch-entry #akkel-shell [data-action=save],.ak-touch-entry #akkel-shell [data-action=discard]{min-width:110px}
 .ak-touch-entry .doc-header,.ak-touch-entry .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 .ak-touch-entry input,.ak-touch-entry select,.ak-touch-entry textarea{font-size:16px!important;min-height:44px}
 .ak-touch-entry .ak-entry-line summary{font-size:16px;line-height:1.6;align-items:center}
 .ak-touch-entry .ak-entry-field:has([data-key=shapeId]) label{font-size:inherit;font-weight:700}
 .ak-touch-entry [aria-invalid=true]{border:2px solid #b94343!important}
 .ak-touch-block-reason{color:#775316;margin:5px 0;line-height:1.5}
 .ak-document-list{display:block!important;min-width:0!important;width:100%!important}
 .ak-document-list thead{display:none!important}.ak-document-list tbody{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .ak-document-list tbody tr{display:block!important;border:1px solid #c6d7e3;border-radius:12px;padding:10px;background:#fff;min-width:0}
 .ak-document-list tbody tr[hidden]{display:none!important}
 .ak-document-list tbody td{display:flex!important;justify-content:space-between;gap:10px;white-space:normal!important;border:0!important;min-width:0!important;padding:5px 0!important;overflow-wrap:anywhere}
 .ak-document-list tbody td:before{content:attr(data-ak-label);color:#536b7a;flex:0 0 auto}
 .ak-document-list tbody td.ak-touch-context:before{content:none}
 .ak-document-list tbody td.ak-touch-empty{display:none!important}
 .ak-document-list tbody td:first-child{font-weight:700;color:#123b55}
 #batch-book-rows td,#ak-home-batches td{overflow-wrap:anywhere}
}
@media screen and (max-width:600px){
 .ak-touch-entry .doc-header,.ak-touch-entry .grid{grid-template-columns:minmax(0,1fr)!important}
 .ak-document-list tbody{grid-template-columns:minmax(0,1fr)}
}
@media screen and (max-width:1024px){
 #akkel-shell .ak-sync-slot,#akkel-shell .ak-sync-slot #akkel-sync-summary{min-height:28px!important}
 body.ak-touch-entry[data-ak-section] #app .doc-header{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media screen and (max-width:600px){body.ak-touch-entry[data-ak-section] #app .doc-header{grid-template-columns:minmax(0,1fr)!important}}
@media screen and (max-width:1024px){
 #batch-book-rows table,#ak-home-batches table{display:block!important;width:100%!important;min-width:0!important}
 #batch-book-rows thead,#ak-home-batches thead{display:none!important}
 #batch-book-rows tbody,#ak-home-batches tbody{display:grid!important;gap:12px}
 #batch-book-rows tbody tr,#ak-home-batches tbody tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;background:#fff;border:1px solid #c6d7e3;border-radius:12px;padding:12px}
 #batch-book-rows tbody tr[hidden],#ak-home-batches tbody tr[hidden]{display:none!important}
 #batch-book-rows tbody td,#ak-home-batches tbody td{display:block!important;width:auto!important;min-width:0!important;border:0!important;padding:0!important;white-space:normal!important}
 #batch-book-rows tbody td:first-child,#ak-home-batches tbody td:first-child{font-size:17px;font-weight:700;grid-column:1/-1;color:#163f59}
 #batch-book-rows tbody td:last-child,#ak-home-batches tbody td:last-child{grid-column:1/-1;border-top:1px solid #e1e9ef!important;padding-top:10px!important}
 #batch-book-rows tbody td:last-child:empty,#ak-home-batches tbody td:last-child:empty{display:none!important}
 #batch-book-rows button:disabled,#ak-home-batches button:disabled{opacity:.5}
}

/* Daily review: keep operational context visible at touch sizes. */
.ak-manufacturing-queue-row{display:block;width:100%;text-align:right;margin:8px 0;padding:14px;background:#edf5fc;border:1px solid #bad0e2;border-radius:10px;cursor:pointer}
@media screen and (max-width:1024px){
 body.ak-touch-entry #app :is(.header-fields,.doc-header){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.ak-touch-entry #app label:has([data-header=batchId]){grid-column:1/-1;min-width:0}
 body.ak-touch-entry #app select[data-header=batchId]{width:100%;min-width:0}
 body.ak-touch-saved #akkel-shell .ak-document-actions button:disabled{display:none!important}
 body.ak-touch-entry #boundary .ak-review-table td.ak-empty-boundary-cell{display:none!important}
 body.ak-touch-entry #boundary .ak-review-table td:has(input):before{display:none!important}
 body.ak-touch-entry #boundary .ak-review-table td{padding:6px 0!important}
 body.ak-touch-entry #boundary .ak-review-table td label{margin:0!important}
 body.ak-touch-entry #boundary .ak-review-table td input,body.ak-touch-entry #boundary .ak-review-table td select{width:100%;box-sizing:border-box}
 body.ak-touch-entry #boundary .batch-form-head{gap:8px}
 body.ak-touch-entry #boundary .batch-form-actions{position:sticky;bottom:0;background:#eaf4ff;padding:8px;z-index:5;display:flex;justify-content:center}
}
@media screen and (max-width:600px){body.ak-touch-entry #app :is(.header-fields,.doc-header){grid-template-columns:minmax(0,1fr)!important}}

.ak-report-boundary{background:#edf4fa;font-weight:600}[data-product-summary],[data-pack-summary]{cursor:pointer}
@media(max-width:1024px){
 .ak-product-ledger .ak-report-boundary td:not(:nth-child(3)):not(:nth-child(6)):not(:nth-child(7)):not(:nth-child(10)),
 .ak-pack-report .ak-report-boundary td:not(:nth-child(2)):not(:nth-child(4)):not(:nth-child(8)),
 .ak-fuel-movement .ak-report-boundary td:not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(8)){display:none!important}
}
/* Keep the tank unit and capacity hint inside the mobile entry row. */
@media(max-width:700px){
 .batch-tank-row{grid-template-columns:minmax(0,1fr) minmax(0,140px)}
 .batch-level{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px}
 .batch-main .batch-level input{grid-column:1;grid-row:1;width:100%;min-width:0}
 .batch-level>span{grid-column:2;grid-row:1}
 .batch-level>.ak-field-limit{grid-column:1/-1;grid-row:2;text-align:center}
}
/* Daily review clarity: preserve the established blue toolbar and unit labels. */
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #1673ad;outline-offset:3px}
table{font-variant-numeric:tabular-nums}tbody tr:nth-child(even){background:#f5f8fb}tbody tr[role=button]:hover,tbody tr.ak-click-row:hover{background:#e7f0f7}td[dir=ltr]{text-align:right}
.ak-negative{color:#a51f2b!important;font-weight:700}.ak-state-badge{display:inline-block;padding:4px 9px;border-radius:6px;font-size:.9em;line-height:1.5;background:#fff2d2;color:#795100}.ak-state-badge.ak-complete{background:#e0f2e7;color:#185c34}.ak-state-badge.ak-blocked{background:#fbe6e8;color:#912331}
#status[data-rejection="1"]{display:block!important;position:relative;z-index:5;margin:12px auto;padding:14px;border:1px solid #ba5360;border-radius:8px;background:#fff0f1;color:#8b1524;max-width:1340px;white-space:pre-wrap}
.ak-inline-error{display:block;color:#a51f2b;font-size:.85em;margin-top:5px}.ak-empty-guidance{color:#4c6475;padding:12px}.ak-boundary-batch{font-size:1.15em;font-weight:700}.ak-document-actions [aria-busy=true]{opacity:.7;cursor:wait}
.scroll.ak-long-table{max-height:65vh}.scroll.ak-long-table thead th{position:sticky;top:0;z-index:2;background:#eaf2f8}

.ak-rework fieldset{border:1px solid #c5d5e1;border-radius:12px;padding:16px;margin:16px 0;min-width:0}.ak-rework legend{font-weight:700;padding:0 8px}.ak-rework fieldset .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ak-rework fieldset label{min-width:0}.ak-rework input{max-width:100%;box-sizing:border-box;direction:ltr}.ak-rework fieldset button{min-width:0}.ak-rework fieldset .actions label[hidden]{display:none}

.ak-rework-links{display:flex;flex-wrap:wrap;gap:16px;margin:12px 0}.ak-rework-links a{color:#194e72;padding:8px 0}

/* AKKEL VISUAL 2026-10-26 — presentation only, local preview */
:root{--ak-ink:#10254d;--ak-primary:#076dff;--ak-bg:#edf6fc;--ak-border:#dce8f4;--ak-radius:16px}
@media screen{
html,body{background:#edf6fc!important;color:#10254d}
body{background:linear-gradient(135deg,#f5f9fd,#e8f4fc)!important;font-variant-numeric:tabular-nums}
#akkel-shell{background:#fff!important;color:#10254d!important;border-bottom:1px solid #dce8f4!important;box-shadow:0 4px 22px #244f7e09!important}
#akkel-shell .ak-heading strong,#akkel-shell .ak-shell-title,#akkel-shell .ak-heading small{color:#10254d!important}
#akkel-shell .ak-heading small{color:#607594!important}
body[data-ak-section] #akkel-shell button,body[data-ak-section] button:not(.primary):not(.active):not([aria-pressed=true]):not(.fan):not(.remove-entry):not([data-action=delete]):not([data-action=cancel]){background:#f7fbff!important;border:1px solid #d5e5f7!important;color:#1859ab!important;box-shadow:none!important}
body[data-ak-section] button.primary,body[data-ak-section] button.active,body[data-ak-section] button[aria-pressed=true]{background:#076dff!important;border-color:#076dff!important;color:white!important}
#nav,body>nav{background:#fff!important;border-bottom:1px solid #dce8f4!important}
#nav button{color:#1859ab!important;background:#f4f8ff!important;border-color:#dce8f4!important}
#nav button.active,#nav button.primary{color:#fff!important;background:#076dff!important}
body[data-ak-section] :is(.card,.panel,.production-portal){background:#fff!important;border:1px solid #dce8f4!important;border-radius:16px!important;box-shadow:0 6px 24px #254e7810!important}
body[data-ak-section] :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-color:#d4e2f2!important;border-radius:9px!important;background:#fff;color:#10254d}
body[data-ak-section] :is(input[readonly],input:disabled,select:disabled){background:#f0f5fa!important}
body[data-ak-section] :is(button,a,input,select,textarea):focus-visible{outline:3px solid #2c7dff!important;outline-offset:2px}
body[data-ak-section] :is(th){background:#f0f5fa!important;color:#486287!important;border-bottom:1px solid #dce8f4}
body[data-ak-section] td{border-bottom:1px solid #e6eef7!important}
body[data-ak-section] tbody tr:nth-child(even){background:#f7faff!important}
body[data-ak-section] tbody tr[role=button]:hover{background:#e9f3ff!important}
body[data-ak-section] :is(.scroll,.table-wrap){border-radius:12px}
body[data-ak-section] button[data-action=save],body[data-ak-section] #akkel-shell button[data-action=save],body[data-ak-section] button[data-action=save-entity]{background:#09a46b!important;border-color:#09a46b!important;color:#fff!important}
body[data-ak-section] button[data-action=delete],body[data-ak-section] button.remove-entry{color:#c43145!important;background:#fff2f4!important;border-color:#f7d8df!important}
.ak-work-home{max-width:1280px!important;background:transparent!important;border:0!important;box-shadow:none!important}
.ak-work-home>.ak-home-group{border:1px solid #dce8f4!important;background:#fff;border-radius:16px;padding:20px!important;box-shadow:0 6px 24px #254e7810;margin:18px 0!important}
.ak-work-home .ak-home-group h2,.ak-batch-summary-heading h2{color:#10254d;font-size:19px!important;margin-bottom:16px!important}
body[data-ak-section] .ak-work-home .production-apps button.primary,body[data-ak-section] .ak-work-home .production-apps button:not(:disabled){background:#fff!important;color:#10254d!important;border:1px solid #dce8f4!important;border-radius:12px!important;min-height:58px!important;text-align:right;padding:14px 18px!important;font-size:16px!important;transition:background .15s,border-color .15s}
body[data-ak-section] .ak-work-home .production-apps button:hover{background:#eff6ff!important;border-color:#8cbcff!important}
body[data-ak-section] .ak-work-home .production-apps button:focus-visible{outline-offset:3px}
.ak-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}
.ak-metric{background:#fff;border:1px solid #dce8f4;border-radius:15px;padding:20px;box-shadow:0 6px 24px #254e7810;min-width:0;position:relative;overflow:hidden}
.ak-metric:before{content:'';position:absolute;inset-inline-start:0;top:20px;bottom:20px;width:4px;background:#076dff;border-radius:8px}
.ak-metric:nth-child(2):before{background:#0bb38c}.ak-metric:nth-child(3):before{background:#ecaa25}.ak-metric:nth-child(4):before{background:#7864dc}
.ak-metric span{display:block;font-size:14px;color:#526987}.ak-metric strong{display:block;font-size:32px;line-height:1.5;color:#10254d}.ak-metric small{color:#627893;font-size:13px}
.ak-overview-note{font-size:14px;color:#627893;margin:6px 0 18px}
@media(max-width:800px){.ak-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ak-metric{padding:15px}.ak-metric strong{font-size:28px}.ak-work-home>.ak-home-group{padding:16px!important}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
}

/* Screenshot review corrections — R2 */
@media screen{
#akkel-shell{min-height:76px!important;padding:12px 24px!important}
#akkel-shell #akkel-sync-summary,#akkel-shell .ak-connection-line{color:#315574!important}
#akkel-shell #akkel-sync-summary .ak-last-update{color:#526b83!important}
#akkel-shell .ak-shell-more>summary{color:#1859ab!important;border-color:#d5e5f7!important;background:#f7fbff!important;font-size:14px!important}
#akkel-shell .ak-shell-more-body{background:#fff!important;border-color:#d5e5f7!important}
body[data-ak-section] #special-form>.actions>button.primary,body[data-ak-section] #form>.actions>button.primary,body[data-ak-section] #tank-form>.actions>button.primary{background:#09a46b!important;border-color:#09a46b!important;color:#fff!important}
body .ak-work-home.ak-section-picker>.ak-home-group:not(.ak-section-open){display:none!important}
.ak-section-choices[hidden]{display:none!important}.ak-section-choices{margin-block:20px}
.ak-section-choices>h2{font-size:20px!important;margin-bottom:14px}
.ak-section-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body[data-ak-section] button.ak-section-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:132px!important;background:#fff!important;color:#10254d!important;border:1px solid #dce8f4!important;border-radius:14px!important;padding:18px!important;font-size:17px!important;line-height:1.5}
body[data-ak-section] button.ak-section-choice:hover{background:#f1f7ff!important;border-color:#8cbcff!important}
.ak-section-symbol{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#eff6ff;color:#076dff;font-size:30px;font-family:Arial,sans-serif}
.ak-section-open{scroll-margin-top:110px}.ak-section-back{margin-bottom:12px}
body[data-ak-section] .ak-work-home.ak-section-picker{background:transparent!important;box-shadow:none!important;border:0!important}
body[data-ak-section=definitions] #definitions-content{padding:18px!important}
body[data-ak-section=definitions] #definitions-content :is(th,td){padding:10px 12px!important;font-size:15px!important}
body[data-ak-section=definitions] #definitions-content :is(input,select){min-height:40px!important;padding:7px 10px!important;font-size:15px!important}
body[data-ak-section=definitions] dialog{width:min(920px,94vw)!important;padding:18px!important}
body[data-ak-section=definitions] dialog label{margin:8px 0!important;font-size:14px!important}
body[data-ak-section=definitions] dialog .tank-grid{gap:10px 16px!important}
body[data-ak-section=definitions] dialog :is(input:not([type=checkbox]):not([type=radio]),select){min-height:42px!important;padding:8px 10px!important;font-size:15px!important;margin-top:5px!important}
.ak-editor-section{border:1px solid #dce8f4;border-radius:12px;margin:12px 0;padding:12px 14px;grid-column:1/-1}
.ak-editor-section>summary{cursor:pointer;font-weight:700;color:#274b72;min-height:28px}
.ak-editor-section fieldset{border:0!important;padding:0!important;margin:12px 0!important;min-width:0}
#special-fields>.ak-unit-panel{margin:12px 0!important;padding:12px 14px!important}
#special-fields>label:last-child{display:flex;align-items:center;gap:8px}
@media(max-width:800px){.ak-section-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ak-section-choice{min-width:0}body[data-ak-section] button.ak-section-choice{font-size:15px!important;min-height:120px!important;padding:12px!important}}
@media(max-width:420px){.ak-section-grid{gap:9px}body[data-ak-section=definitions] dialog{padding:12px!important}}
}

/* R3: overview belongs to the home screen, not inside the selected section. */
body .ak-work-home.ak-section-selected #ak-home-batches{display:none!important}
