/* CPECC IRAQ DIV-1: blue and charcoal field workspace. */
:root{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:#293744;background:#eef1f4;font-synthesis:none;
  --blue:#315f8c;--blue-dark:#274e73;--panel:#4b7399;--sidebar:#303942;
  --muted:#637383;--line:#d7dfe7;--white:#fff;--surface:#f4f6f8;
}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{outline-offset:3px}
:focus-visible{outline:3px solid #80b6e8}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
button,.btn{border:1px solid #cbd6e0;background:#fff;color:#31536f;border-radius:4px;padding:10px 15px;font-size:13px;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px}
button:hover,.btn:hover{background:#edf3f9;border-color:#9bb2c9}
button.primary{background:var(--blue);color:#fff;border-color:var(--blue)}
button.primary:hover{background:#244e78;border-color:#244e78}
.danger{color:#ad3e3e}
.quiet{background:transparent;border:0}
.small{font-size:12px;padding:6px 9px;min-height:32px}
h1,h2,h3,p{margin-top:0}
h1{font-size:27px;letter-spacing:-.025em;font-weight:650;margin-bottom:9px;line-height:1.35}
h2{font-size:17px;font-weight:650}
h3{font-size:14px}
p{line-height:1.65}
small,.muted{color:var(--muted)}
.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted);margin-bottom:9px}
.shell{display:grid;grid-template-columns:252px minmax(0,1fr);min-height:100vh}
.shell>section{min-width:0}
.sidebar{position:sticky;top:0;height:100dvh;background:var(--sidebar);color:#e8edf2;padding:24px 14px 20px;display:flex;flex-direction:column;overflow:auto}
.brand{display:flex;align-items:center;gap:12px;padding:0 3px 24px;flex-shrink:0}
.brand-logo{display:flex;align-items:center;justify-content:center;width:68px;height:54px;background:#fff;border:1px solid #e0e6ec;border-radius:4px;padding:4px;flex:0 0 auto}
.brand img{display:block;width:100%;height:100%;object-fit:contain}
.brand-copy{min-width:0}
.brand strong{display:block;font-size:14px;letter-spacing:.3px;line-height:1.4}
.brand .division{display:block;font-size:12px;letter-spacing:1.4px;color:#bfcee0;margin-top:1px}
.brand small{display:block;font-size:11px;line-height:1.5;color:#bcc9d5;margin-top:4px}
.nav-label{font-size:10px;letter-spacing:1.5px;color:#95a7b7;margin:12px 13px 10px}
.sidebar nav{display:grid;gap:3px}
.sidebar nav button{border:0;border-radius:3px;justify-content:flex-start;padding:10px 12px;background:none;color:#d5dde5;font-size:13px;font-weight:500;min-height:39px;text-align:left;line-height:1.3}
.sidebar nav button:hover{background:#404d59;color:#fff}
.sidebar nav button.active{background:var(--blue);color:#fff;font-weight:650;box-shadow:inset 3px 0 #8ec7ff}
.nav-icon{width:23px;font-size:17px;flex-shrink:0;color:#b7cde0}
.sidebar nav button.active .nav-icon{color:#fff}
.sidebar-bottom{margin-top:auto;padding:25px 12px 0;font-size:11px;color:#a5b4c2;line-height:1.7}
.sidebar-bottom p{margin:9px 0 0}
.prototype{border:1px solid #617386;display:inline-block;padding:3px 8px;border-radius:3px;font-size:10px;letter-spacing:1px;color:#d3dfeb}
.topbar{min-height:76px;background:var(--blue-dark);padding:16px 28px;display:flex;align-items:center;justify-content:space-between;gap:22px;color:#fff;box-shadow:0 2px 6px #203e5a12}
.topbar .location{font-size:15px;font-weight:600;line-height:1.5;max-width:520px}
.identity{display:flex;align-items:center;gap:10px;font-size:12px;flex-shrink:0}
.identity>div:not(.avatar){line-height:1.6;max-width:190px;overflow-wrap:anywhere}
.topbar small{color:#c4d7e8}
.topbar button{color:#fff}
.topbar button:hover{background:#ffffff14;color:#fff}
.avatar{width:33px;height:33px;border-radius:50%;background:#ffffff1c;color:#fff;display:grid;place-items:center;font-weight:700;border:1px solid #ffffff24;flex-shrink:0}
.language-toggle{border:1px solid #cbd6e0!important;border-radius:4px;min-width:44px}
.topbar .language-toggle{border-color:#ffffff45!important}
.page{padding:27px 28px 38px;max-width:1660px;margin:auto}
.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}
.page-heading p{font-size:13px;color:var(--muted);margin:0;max-width:800px}
.actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0}
.notice{display:flex;align-items:center;gap:10px;border:1px solid #ccdaea;border-left:3px solid #628cb4;border-radius:3px;padding:10px 13px;background:#e7eff7;color:#42617e;font-size:12px;margin-bottom:20px;line-height:1.6}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}
.stat{background:#fff;border:1px solid var(--line);border-top:3px solid #6d8faf;border-radius:4px;padding:19px 20px;box-shadow:0 2px 5px #203e5a04}
.stat .label{font-size:12px;color:#55697e;display:flex;justify-content:space-between;gap:8px}
.stat .label span{font-size:16px;color:#7192b2}
.stat strong{font-size:34px;font-weight:650;display:block;margin:13px 0 6px;letter-spacing:-1px;color:#2d4f70;font-variant-numeric:tabular-nums}
.stat small{font-size:11px;line-height:1.5}
.stat.highlight{background:#e8f0f8;border-color:#c7d7e7;border-top-color:var(--blue)}
.grid-two{display:grid;grid-template-columns:1.6fr 1fr;gap:20px}
.card{background:#fff;border:1px solid var(--line);border-radius:4px;overflow:hidden;margin-bottom:20px;box-shadow:0 2px 6px #203e5a05}
.card-head{padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:var(--panel);color:#fff;min-height:51px}
.card-head h2{margin:0;font-size:15px;line-height:1.5}
.card-head p{font-size:11px;margin:4px 0 0;color:#e3edf6;line-height:1.5}
.card-head small{color:#e3edf6}
.card-head button{color:#fff;white-space:nowrap}
.card-head button:hover{background:#ffffff1c}
.card-body{padding:0 20px 20px}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;font-size:13px;text-align:left;white-space:nowrap}
th{font-size:11px;text-transform:uppercase;letter-spacing:.35px;color:#52677b;background:#eef3f8;padding:12px 17px;border-bottom:1px solid #cfdbe6;font-weight:650}
td{padding:13px 17px;border-bottom:1px solid #e7ecf1;max-width:340px;overflow-wrap:anywhere}
tbody tr:nth-child(even){background:#fafbfd}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:#f0f5fa}
td strong{font-size:13px;font-weight:600}
td small{display:block;margin-top:4px;font-size:11px}
.numeric{font-variant-numeric:tabular-nums}
.badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;border-radius:3px;padding:4px 8px;font-weight:600;background:#edf0f4;color:#607083;white-space:nowrap}
.badge.good{background:#e7f3eb;color:#2e704a}
.badge.warn{background:#fff1d8;color:#8c631d}
.badge.bad{background:#fbe8e8;color:#a33e3e}
.badge.blue{background:#e5eef8;color:#36648f}
.empty{padding:36px 24px;text-align:center;color:var(--muted);font-size:12px;white-space:normal;line-height:1.7}
.empty strong{display:block;font-size:14px;color:#4b6177;margin-bottom:7px}
.filterbar{display:flex;gap:12px;flex-wrap:wrap;padding:16px 18px;border-bottom:1px solid var(--line);background:#fafbfd}
.filterbar input{flex:1;min-width:180px}
.filterbar select{width:auto;min-width:145px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.form-grid .full{grid-column:1/-1}
.form-grid label{min-width:0}
label{display:grid;gap:7px;font-size:12px;font-weight:600;color:#43566a}
input,select,textarea{width:100%;border:1px solid #cbd6e0;border-radius:4px;background:#fff;color:#293d50;padding:11px 12px;font-size:13px;min-width:0}
select{appearance:none;-webkit-appearance:none;min-height:40px;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235b7690' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:12px 8px}
input:focus,select:focus,textarea:focus{outline:2px solid #89b5df;border-color:#5386b6}
input[readonly]{background:#f4f7fa;color:#556e86}
input[type=file]{padding:12px;background:#f4f7fa;border-style:dashed}
textarea{resize:vertical;min-height:88px}
.form-help{font-size:12px;color:var(--muted);line-height:1.65;margin:15px 0}
.form-footer{border-top:1px solid var(--line);margin-top:24px;padding-top:18px;display:flex;justify-content:flex-end;gap:10px}
.error{color:#a43f3f;background:#fcefef;border-radius:4px;padding:12px;font-size:12px;line-height:1.6;margin-top:15px}
.error:empty{display:none}
.bar-row{margin-top:20px;display:grid;grid-template-columns:75px 1fr 30px;gap:12px;align-items:center;font-size:12px}
.bar-track{height:8px;background:#e9eff5;border-radius:3px}
.bar-track progress{width:100%;height:8px;accent-color:#628cb4;display:block;border:0;border-radius:3px;overflow:hidden}
progress::-webkit-progress-bar{background:#e9eff5}
progress::-webkit-progress-value{background:#628cb4}
.timeline{margin-top:15px}
.timeline-item{padding:13px 0;border-bottom:1px solid #e7ecf1;display:flex;align-items:flex-start;gap:12px;font-size:12px}
.timeline-dot{width:8px;height:8px;background:#719bbf;border-radius:50%;margin-top:5px;flex-shrink:0}
.timeline-item p{margin:0}
.timeline-item small{display:block;margin-top:3px}
.flow{display:flex;align-items:center;justify-content:space-around;padding:18px 16px;background:#f4f7fa;border-top:1px solid var(--line);font-size:11px;color:#6c7e90;gap:10px}
.flow strong{display:block;font-size:12px;color:#426689;margin-bottom:4px}
.login{min-height:100dvh;display:grid;grid-template-columns:1.05fr 1fr;background:#f3f5f8}
.login-story{background:linear-gradient(150deg,#274e73 0%,#243c53 60%,#303942 100%);color:#fff;padding:55px 10%;display:flex;flex-direction:column;justify-content:space-between;gap:40px;border-top:5px solid #5e8bb4}
.login-story .brand{padding:0}
.login-story .brand-logo{width:92px;height:73px;padding:7px}
.login-story .brand strong{font-size:20px}
.login-story .brand .division{display:inline-block;font-size:13px;letter-spacing:1px;margin:0 0 0 8px;color:#d8e7f4}
.login-story .brand small{font-size:13px;color:#d1deeb}
.login-story h1{font-size:42px;line-height:1.22;letter-spacing:-1px;max-width:450px;margin:0 0 22px}
.login-story p{color:#c3d3e3;font-size:15px;max-width:420px}
.login-story .story-number{font-size:11px;letter-spacing:2px;color:#a7c7e4;margin-bottom:20px}
.story-rules{display:grid;gap:13px;font-size:13px;color:#d3dfeb;margin-top:28px;border-left:2px solid #668eb1;padding-left:18px}
.login-story>small{color:#99b0c6;font-size:11px;letter-spacing:.9px}
.login-panel{position:relative;display:flex;align-items:center;justify-content:center;padding:70px 45px}
.login-panel>.language-toggle{position:absolute;right:24px;top:24px}
.login-form{width:100%;max-width:395px;background:#fff;border:1px solid #d9e2eb;border-top:4px solid var(--blue);border-radius:5px;padding:32px;box-shadow:0 12px 36px #243c5309}
.login-form h1{font-size:26px}
.login-form>p{color:var(--muted);font-size:13px}
.login-form form{display:grid;gap:17px;margin:25px 0 14px}
.login-form form button{min-height:44px;justify-content:space-between}
.login-form .switch{font-size:12px;text-align:center}
.login-form .switch button{font-size:12px;padding:6px}
.login-footer{font-size:11px;line-height:1.7;color:#718297;margin-top:26px;padding-top:18px;border-top:1px solid #e5ebf1}
.pending{max-width:580px;margin:60px auto;padding:32px;border-top:4px solid var(--blue)}
.pending .brand{color:var(--blue-dark);padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid var(--line)}
.pending .brand small,.pending .division{color:var(--muted)}
.pending .brand .division{display:inline-block;margin-left:5px}
.pending .brand strong{font-size:18px}
.pending h1{font-size:24px;margin-top:16px}
.loading{padding:80px;text-align:center;color:#627c94}
#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:#284f73;color:#fff;padding:13px 22px;border-radius:4px;z-index:100;font-size:13px;box-shadow:0 6px 25px #203e5a25;max-width:90vw;display:none;line-height:1.6}
#toast.visible{display:block}
dialog{border:1px solid #bacddd;border-top:4px solid var(--blue);border-radius:5px;padding:26px;width:calc(100% - 32px);max-width:900px;max-height:90dvh;color:#293d50}
dialog::backdrop{background:#182e4670;backdrop-filter:blur(2px)}
dialog h2{font-size:21px;margin-bottom:20px}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;font-size:13px}
.detail-grid small{display:block;margin-bottom:7px}
.detail-note{white-space:pre-wrap;overflow-wrap:anywhere;max-width:400px}
.copyright{font-size:11px;color:#6e8092;margin-top:24px;display:flex;justify-content:space-between;gap:16px;line-height:1.7}
.num-positive{color:#2e704a}.num-negative{color:#ad4d3e}
.mobile-menu,.inventory-cards{display:none}
#import-preview{max-height:45dvh;overflow:auto;margin-top:20px}
[hidden]{display:none!important}
@media(max-width:1200px){
  .shell{grid-template-columns:230px minmax(0,1fr)}
  .sidebar{padding:22px 12px}
  .brand{gap:9px}.brand-logo{width:59px;height:48px}.brand strong{font-size:13px}
  .page{padding:24px 22px}.topbar{padding:14px 22px;gap:16px}
  .topbar .location{font-size:13px;max-width:350px}.identity{gap:7px}
  .stats{gap:12px}.stat{padding:17px}.grid-two{grid-template-columns:1fr}
  .login-story{padding:45px 8%}.login-story h1{font-size:36px}
  .login-story .brand strong{font-size:18px}.login-story .brand .division{display:block;margin:2px 0 0}
}
@media(max-width:900px) and (min-width:761px){
  .topbar{align-items:flex-start;flex-direction:column;gap:10px}
  .identity{align-self:flex-end}.page-heading{flex-direction:column}.actions{justify-content:flex-start}
  .login-story .brand{align-items:flex-start;flex-direction:column}.login-story{padding:40px 28px}.login-panel{padding:65px 28px}
}
@media(max-width:760px){
  .shell{display:block}.sidebar{width:100%;position:static;height:auto;padding:15px 16px;overflow:visible}
  .sidebar .brand{padding:0;gap:12px}.brand-logo{width:68px;height:54px}
  .sidebar .brand strong{font-size:16px}.sidebar .division{display:inline-block;margin:0 0 0 5px;font-size:12px}
  .sidebar .brand small{font-size:12px;margin-top:3px}
  .sidebar nav,.sidebar-bottom,.nav-label{display:none}
  .mobile-menu{display:block;color:#cbd7e1;font-size:11px;margin:12px 0 0;font-weight:500}
  .mobile-menu select{width:100%;margin-top:6px;background:#f4f7fa;color:#2c4d6f;border:0;font-size:16px;min-height:44px}
  .topbar{padding:10px 12px;min-height:60px}.topbar .location{display:none}
  .identity{width:100%;flex-wrap:wrap;gap:8px;justify-content:flex-end}
  .identity .avatar{display:none}.identity>div:not(.avatar){margin-right:auto;font-size:11px;max-width:170px;order:-1}
  .topbar .small{font-size:12px;min-height:36px;padding:6px 8px}
  .page{padding:21px 12px 28px}.page-heading{display:block;margin-bottom:20px}
  .page-heading .actions{margin-top:16px;display:flex;flex-wrap:wrap;justify-content:flex-start}
  .actions button{min-height:44px}.page-heading h1{font-size:25px}.page-heading p{line-height:1.65}
  .eyebrow{font-size:9px;letter-spacing:.8px}.notice{font-size:11px;padding:10px 12px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat{padding:15px 13px}.stat strong{font-size:30px}
  .stat .label{font-size:11px}.stat small{font-size:10px}
  .grid-two{grid-template-columns:1fr;gap:0}.card{margin-bottom:16px}.card-head{padding:13px 14px;gap:10px}
  .card-head h2{font-size:14px}.card-head button{white-space:normal;text-align:right;padding:4px;font-size:11px}
  .card-head p{font-size:10px}.card-body{padding:0 16px 16px}
  .filterbar{display:flex;flex-wrap:wrap;padding:12px;gap:10px}
  .filterbar input,.filterbar select{width:100%;min-width:0;font-size:16px;min-height:44px}
  .form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}
  .form-grid input,.form-grid select,.form-grid textarea{font-size:16px;min-height:48px}
  .form-footer{position:sticky;bottom:0;background:white;padding:15px 0 0;z-index:2;gap:10px}
  .form-footer button{min-height:46px;flex:1}
  #modal{max-height:95dvh;width:calc(100% - 12px);padding:20px}
  body:has(.inventory-cards) #page-body>.card .table-wrap{display:none}
  .inventory-cards{display:grid;gap:12px;margin-top:12px}.inventory-card{padding:17px;margin-bottom:0;border-left:3px solid #6e97bc}
  .inventory-card h2{margin:8px 0;font-size:16px}.inventory-card>strong{font-size:28px;color:var(--blue)}.inventory-card small{font-size:14px}
  .table-wrap table,.table-wrap tbody,.table-wrap tr,.table-wrap td{display:block;width:100%;white-space:normal}
  .table-wrap thead{display:none}.table-wrap tr{padding:12px 14px;border-bottom:1px solid var(--line)}
  .table-wrap tr:last-child{border-bottom:0}
  .table-wrap td{border:0;padding:6px 0;max-width:none;display:flex;justify-content:space-between;gap:15px;align-items:flex-start;font-size:12px;text-align:right;overflow-wrap:anywhere}
  .table-wrap td:before{content:attr(data-label);font-size:11px;color:#687e93;flex:0 0 92px;text-align:left}
  .table-wrap td strong{display:inline;font-size:12px}.table-wrap td small{display:block}
  .table-wrap td:has(.empty){display:block}.table-wrap td:has(.empty):before{display:none}
  .flow{display:none}.login{grid-template-columns:1fr}
  .login-story{padding:23px 22px;gap:0;border-top-width:4px}
  .login-story .brand{flex-direction:row;align-items:center;gap:13px}.login-story .brand-logo{width:78px;height:62px;padding:5px}
  .login-story .brand strong{font-size:18px}.login-story .brand .division{display:inline-block;font-size:12px;margin:0 0 0 5px}
  .login-story .brand small{font-size:12px}
  .login-story>div:not(.brand),.login-story>small{display:none}
  .login-panel{padding:65px 18px 35px;align-items:flex-start;min-height:calc(100dvh - 112px)}
  .login-panel>.language-toggle{top:14px;right:18px}
  .login-form{padding:27px 22px;max-width:430px}.login-form input{font-size:16px;min-height:48px}
  .pending{margin:20px 12px;padding:24px}.pending .brand strong{font-size:16px}
  .detail-grid{grid-template-columns:1fr}.copyright{display:block;font-size:10px}.copyright span{display:block;margin-bottom:6px}
}
