@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --brand: #b91c2c;
    --brand-dark: #941525;
    --brand-soft: #fff0f1;
    --ink: #202631;
    --muted: #7b8492;
    --line: #e9ebef;
    --canvas: #f5f6f8;
    --sidebar-width: 264px;
    --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: 'DM Sans', sans-serif; font-size: 14px; }
h1,h2,h3,.brand-copy strong,.login-art-copy h1 { font-family: 'Manrope', sans-serif; letter-spacing: -.035em; }
a { color: inherit; }
.app-sidebar { position: fixed; z-index: 1040; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); transition: transform .25s ease; }
.sidebar-brand { height: 78px; display: flex; align-items: center; gap: 11px; padding: 0 20px; text-decoration: none; border-bottom: 1px solid var(--line); }
.brand-mark { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #fff; background: var(--brand); border-radius: 12px; font-size: 20px; box-shadow: 0 5px 13px #b91c2c2b; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-copy strong { font-size: 12px; letter-spacing: .025em; white-space: nowrap; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.sidebar-close { margin-left: auto; border: 0; background: transparent; font-size: 18px; }
.sidebar-scroll { flex: 1; overflow-y: auto; padding: 22px 13px; }
.nav-group-label { padding: 0 12px; margin: 7px 0 10px; color: #a0a6b0; font-size: 10px; font-weight: 700; letter-spacing: .11em; }
.sidebar-nav { display: grid; gap: 5px; margin-bottom: 26px; }
.sidebar-link { min-height: 43px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 9px; color: #687180; text-decoration: none; font-size: 13px; font-weight: 600; transition: background .18s ease, color .18s ease; }
.sidebar-link > i { width: 19px; text-align: center; font-size: 17px; }
.sidebar-link:hover { color: var(--brand); background: #fff7f7; }
.sidebar-link.active { color: var(--brand); background: var(--brand-soft); }
.sidebar-link.is-placeholder { cursor: not-allowed; opacity: .7; }
.nav-soon { margin-left: auto; color: #9ca3af; font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.sidebar-bottom { display: flex; gap: 11px; align-items: center; margin: 12px; padding: 14px 12px; background: #f8f9fb; border: 1px solid var(--line); border-radius: 11px; }
.sidebar-help-icon { display: grid; place-items: center; width: 34px; height: 34px; background: #fff; color: var(--brand); border: 1px solid var(--line); border-radius: 9px; font-size: 17px; }
.sidebar-bottom strong,.sidebar-bottom small { display: block; }
.sidebar-bottom strong { font-size: 11px; }
.sidebar-bottom small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.app-main { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { height: 70px; position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 30px; background: #ffffffed; border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.topbar-context,.topbar-right,.user-menu { display: flex; align-items: center; gap: 12px; }
.topbar-context { color: var(--muted); font-size: 12px; }
.topbar-context strong { color: var(--ink); font-weight: 700; }
.topbar-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a36a; box-shadow: 0 0 0 3px #16a36a18; }
.topbar-date { color: var(--muted); font-size: 12px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; color: var(--brand); background: var(--brand-soft); border-radius: 50%; font-weight: 700; }
.user-copy { flex-direction: column; gap: 2px; }
.user-copy strong { font-size: 12px; }
.user-copy small { color: var(--muted); font-size: 10px; text-transform: capitalize; }
.icon-button { display: inline-grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 9px; color: #697281; background: #fff; text-decoration: none; font-size: 17px; }
.icon-button:hover { color: var(--brand); border-color: #f0b9bf; }
.page-content { max-width: 1600px; padding: 30px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.page-heading h1 { margin: 0 0 7px; font-size: clamp(24px, 2vw, 30px); font-weight: 800; }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.date-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; color: #596273; background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; white-space: nowrap; }
.stat-card,.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 12px #17203304; }
.stat-card { height: 100%; min-height: 155px; padding: 20px; transition: transform .2s ease, box-shadow .2s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 9px 24px #1720330b; }
.stat-top { display: flex; align-items: center; gap: 10px; }
.stat-icon { display: grid; place-items: center; width: 38px; height: 38px; color: var(--brand); background: var(--brand-soft); border-radius: 10px; font-size: 18px; }
.stat-label { color: #667080; font-size: 12px; font-weight: 600; }
.stat-value { margin-top: 17px; font-family: 'Manrope', sans-serif; font-size: 29px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.stat-note { margin-top: 9px; color: #9299a5; font-size: 11px; }
.panel { padding: 22px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 21px; }
.panel-heading h2 { margin: 0 0 5px; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.quick-action { display: flex; align-items: center; gap: 12px; min-height: 77px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; text-decoration: none; transition: border-color .18s, background .18s; }
.quick-action:hover { border-color: #efb7be; background: #fffafa; }
.quick-action-icon { display: grid; place-items: center; flex: 0 0 auto; width: 39px; height: 39px; color: var(--brand); background: var(--brand-soft); border-radius: 10px; font-size: 18px; }
.quick-action strong,.quick-action small { display: block; }
.quick-action strong { font-size: 12px; }
.quick-action small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.quick-action > .bi-arrow-up-right { color: #a3a9b3; font-size: 13px; }
.status-pill { padding: 5px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status-progress { color: #a65b00; background: #fff4df; }
.checklist { display: grid; gap: 17px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; color: #414a58; font-size: 12px; line-height: 1.5; }
.checklist li > i { margin-top: 1px; color: #159568; font-size: 15px; }
.checklist li.pending > i { color: #b2b8c1; }
.app-footer { display: flex; justify-content: space-between; gap: 15px; padding: 25px 0 5px; color: #9aa1ac; font-size: 10px; }
.sidebar-backdrop { display: none; }
.login-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr); min-height: 100vh; background: #fff; }
.login-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 42px clamp(30px, 6vw, 90px); overflow: hidden; color: #fff; background: linear-gradient(145deg, #c52535 0%, #a81729 52%, #761323 100%); }
.login-art::before,.login-art::after { position: absolute; content: ''; border: 1px solid #ffffff19; border-radius: 50%; pointer-events: none; }
.login-art::before { width: 600px; height: 600px; right: -230px; bottom: -190px; }
.login-art::after { width: 430px; height: 430px; right: -145px; bottom: -105px; }
.login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.login-brand .brand-mark { color: var(--brand); background: #fff; }
.login-brand strong,.login-brand small { display: block; }
.login-brand strong { font-family: 'Manrope',sans-serif; font-size: 13px; letter-spacing: .03em; }
.login-brand small { margin-top: 4px; color: #ffe0e3; font-size: 11px; }
.login-art-copy { position: relative; z-index: 1; max-width: 590px; margin: 55px 0; }
.eyebrow.light { color: #ffd1d6; }
.login-art-copy h1 { margin: 0 0 22px; font-size: clamp(34px, 4vw, 56px); line-height: 1.13; font-weight: 800; }
.login-art-copy p { max-width: 450px; color: #ffe1e4; font-size: 15px; line-height: 1.8; }
.login-art-footer { position: relative; z-index: 1; color: #ffd5d9; font-size: 11px; }
.login-form-side { display: grid; place-items: center; padding: 38px; }
.login-form-wrap { width: 100%; max-width: 390px; }
.login-form-wrap h2 { margin: 0 0 9px; font-size: 26px; font-weight: 800; }
.form-label { color: #3c4553; font-size: 12px; font-weight: 700; }
.form-control { min-height: 45px; border-color: #e1e5eb; border-radius: 9px; font-size: 13px; box-shadow: none !important; }
.form-control:focus { border-color: #d66b76; }
.input-with-icon { position: relative; }
.input-with-icon > i { position: absolute; z-index: 1; top: 50%; left: 14px; color: #9299a5; transform: translateY(-50%); }
.input-with-icon .form-control { padding-left: 40px; }
.password-wrap .form-control { padding-right: 45px; }
.password-toggle { position: absolute; top: 0; right: 4px; height: 45px; width: 38px; border: 0; background: transparent; color: #858d99; }
.btn-brand { color: #fff; background: var(--brand); border: 1px solid var(--brand); border-radius: 9px; font-size: 13px; font-weight: 700; }
.btn-brand:hover,.btn-brand:focus { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }
.login-note { margin-top: 25px; color: #6f7887; font-size: 11px; }
.login-note i { color: #16865d; }
.login-help { margin-top: 24px; color: #939aa5; font-size: 10px; line-height: 1.7; }
.mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 35px; font-family: 'Manrope',sans-serif; font-size: 12px; }
.alert { border-radius: 10px; font-size: 12px; }
@media (max-width: 1199.98px) { .page-content { padding: 24px; } .topbar { padding: 0 24px; } }
@media (max-width: 991.98px) {
    .app-sidebar { transform: translateX(-100%); box-shadow: none; }
    body.sidebar-open .app-sidebar { transform: translateX(0); box-shadow: 12px 0 40px #11182720; }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 1030; background: #10182870; }
    body.sidebar-open .sidebar-backdrop { display: block; }
    .app-main { margin-left: 0; }
    .login-page { grid-template-columns: 1fr; }
    .login-art { display: none; }
    .login-form-side { min-height: 100vh; }
    .mobile-brand { display: flex; }
}
@media (max-width: 575.98px) {
    .topbar { height: 62px; padding: 0 15px; }
    .topbar-context { gap: 7px; font-size: 11px; }
    .topbar-context > span:nth-of-type(2),.topbar-context > i { display: none; }
    .topbar-right { gap: 8px; }
    .page-content { padding: 21px 15px; }
    .page-heading { align-items: flex-start; }
    .page-heading h1 { font-size: 24px; }
    .date-chip { padding: 8px; font-size: 10px; }
    .stat-card { min-height: 142px; padding: 15px; }
    .stat-value { font-size: 25px; }
    .stat-note { font-size: 10px; }
    .panel { padding: 17px; }
    .app-footer { font-size: 9px; }
    .login-form-side { padding: 25px 22px; }
    .login-form-wrap h2 { font-size: 23px; }
}


/* Purchasing workspace refinement */
.purchasing-page { background: #f4f6fa; }
.purchasing-page .purchase-content { max-width: 1740px; padding: 30px clamp(16px, 2.2vw, 36px) 42px; }
.purchasing-page .purchase-heading { display:flex; align-items:center; justify-content:space-between; gap:22px; margin:0 0 26px; padding:25px 28px; background:linear-gradient(115deg,#fff 0%,#fff 68%,#fff6f7 100%); border:1px solid #e9edf3; border-radius:18px; box-shadow:0 7px 24px rgba(23,32,51,.035); }
.purchasing-page .purchase-heading .eyebrow { margin-bottom:9px; }
.purchasing-page .purchase-heading h1 { margin:0; color:#1d2736; font-size:clamp(24px,2vw,31px); line-height:1.2; font-weight:800; letter-spacing:-.045em; }
.purchasing-page .purchase-heading p { margin:9px 0 0; color:#758092; font-size:13px; line-height:1.6; }
.purchasing-page .purchase-heading-mark { display:flex; align-items:center; gap:13px; flex:0 0 auto; padding:13px 17px; background:#fff; border:1px solid #f0dadd; border-radius:13px; }
.purchasing-page .purchase-heading-mark > i { display:grid; place-items:center; width:42px; height:42px; color:#b91c2c; background:#fff0f1; border-radius:11px; font-size:21px; }
.purchasing-page .purchase-heading-mark strong,.purchasing-page .purchase-heading-mark small { display:block; }
.purchasing-page .purchase-heading-mark strong { color:#263142; font-size:12px; font-weight:800; }
.purchasing-page .purchase-heading-mark small { margin-top:4px; color:#87909d; font-size:10px; }
.purchasing-page .row.g-4 { --bs-gutter-x: 22px; --bs-gutter-y: 22px; }
.purchasing-page .card { overflow:hidden; border:1px solid #e6eaf0 !important; border-radius:15px; background:#fff; box-shadow:0 5px 18px rgba(24,39,75,.045) !important; }
.purchasing-page .card-header { display:flex; align-items:center; min-height:61px; padding:17px 21px; border-bottom:1px solid #edf0f4; background:#fff !important; }
.purchasing-page .card-header h2 { display:flex; align-items:center; gap:10px; color:#263142; font-size:14px; font-weight:800; letter-spacing:-.02em; }
.purchasing-page .card-header h2:before { content:""; display:block; width:4px; height:19px; border-radius:4px; background:#b91c2c; }
.purchasing-page .card-body { padding:22px; }
.purchasing-page .form-label { display:block; margin-bottom:7px; color:#475366; font-size:11px; font-weight:800; letter-spacing:.015em; }
.purchasing-page .form-control,.purchasing-page .form-select { min-height:43px; margin-bottom:17px !important; border:1px solid #dfe5ed; border-radius:9px; background-color:#fff; color:#293446; font-size:12px; transition:border-color .15s,box-shadow .15s; }
.purchasing-page textarea.form-control { min-height:100px; resize:vertical; }
.purchasing-page .form-control:focus,.purchasing-page .form-select:focus { border-color:#d76c78; box-shadow:0 0 0 3px rgba(185,28,44,.09) !important; }
.purchasing-page .btn { min-height:38px; padding:9px 13px; border-radius:8px; font-size:11px; font-weight:700; }
.purchasing-page .btn-primary { background:#b91c2c; border-color:#b91c2c; box-shadow:0 3px 8px rgba(185,28,44,.12); }
.purchasing-page .btn-primary:hover { background:#941525; border-color:#941525; }
.purchasing-page .table-responsive { overflow-x:auto; }
.purchasing-page .table { min-width:640px; color:#344054; font-size:11px; }
.purchasing-page .table thead th { padding:13px 14px; background:#f8f9fb; border-bottom:1px solid #e9edf2; color:#7b8492; font-size:9px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; white-space:nowrap; }
.purchasing-page .table tbody td { padding:15px 14px; border-color:#edf0f4; vertical-align:middle; line-height:1.5; }
.purchasing-page .table tbody tr:last-child td { border-bottom:0; }
.purchasing-page .table tbody tr:hover td { background:#fffafb; }
.purchasing-page .table td strong { color:#273244; font-weight:800; }
.purchasing-page .table .small { max-width:250px; margin-top:4px; color:#7c8797 !important; font-size:10px; overflow-wrap:anywhere; }
.purchasing-page .badge { display:inline-block; padding:6px 8px; border:1px solid #e6eaf0; border-radius:6px; background:#f7f8fa !important; color:#5b6575 !important; font-size:9px; font-weight:800; text-transform:capitalize; white-space:normal; }
.purchasing-page .table form { min-width:180px; }
.purchasing-page .table form .form-control { min-height:32px; margin:0 0 5px !important; font-size:10px; }
.purchasing-page .table .btn { min-height:30px; padding:6px 9px; font-size:10px; }
.purchasing-page .alert { margin-bottom:20px; padding:13px 16px; font-size:12px; }
@media (max-width: 1199.98px) { .purchasing-page .purchase-content { padding:22px 20px 35px; } .purchasing-page .card-body { padding:18px; } }
@media (max-width: 767.98px) { .purchasing-page .purchase-heading { align-items:flex-start; padding:20px; } .purchasing-page .purchase-heading-mark { display:none; } .purchasing-page .purchase-heading h1 { font-size:24px; } .purchasing-page .row.g-4 { --bs-gutter-x: 14px; --bs-gutter-y: 17px; } .purchasing-page .table { min-width:600px; } }
@media (max-width: 575.98px) { .purchasing-page .purchase-content { padding:16px 12px 28px; } .purchasing-page .purchase-heading { margin-bottom:17px; padding:18px 16px; border-radius:13px; } .purchasing-page .purchase-heading h1 { font-size:21px; } .purchasing-page .purchase-heading p { font-size:12px; } .purchasing-page .card-header { min-height:54px; padding:14px 16px; } .purchasing-page .card-body { padding:16px; } }


/* Phase 5 — consistent application polish and Goods Receiving workspace */
:root {
    --brand: #b91c2c;
    --brand-dark: #941525;
    --brand-soft: #fff0f1;
    --ink: #202938;
    --muted: #778294;
    --line: #e5e9f0;
    --canvas: #f4f6fa;
    --radius: 14px;
}
body { background: var(--canvas); color: var(--ink); }
.app-main { min-width: 0; }
.page-content, .app-main > .container-fluid { width: 100%; }
.card, .panel, .stat-card { border-color: var(--line); }
.btn { font-weight: 700; transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease; }
.btn:focus-visible, .icon-button:focus-visible, .sidebar-link:focus-visible, a:focus-visible { outline: 3px solid rgba(185,28,44,.24); outline-offset: 2px; }
.btn-primary { background-color: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background-color: var(--brand-dark); border-color: var(--brand-dark); box-shadow: 0 5px 12px rgba(148,21,37,.16); }
.form-control, .form-select { color: #293446; }
.form-control::placeholder { color: #a0a8b5; }
.table > :not(caption) > * > * { border-bottom-color: #edf0f4; }
.alert { border-radius: 10px; }

.grn-page { background: var(--canvas); }
.grn-page .grn-content { max-width: 1760px; padding: 30px clamp(14px, 2.2vw, 36px) 44px; }
.grn-page .grn-content > .d-flex:first-child { margin-bottom: 23px !important; padding: 24px 27px; background: linear-gradient(120deg, #fff 0%, #fff 70%, #fff6f7 100%); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 6px 22px rgba(24,39,75,.035); }
.grn-page .grn-content > .d-flex:first-child .text-uppercase { color: var(--brand) !important; font-size: 10px; letter-spacing: .13em; }
.grn-page .grn-content > .d-flex:first-child h1 { margin-top: 7px; color: #1f2937; font-size: clamp(23px, 2vw, 30px); font-weight: 800; letter-spacing: -.04em; }
.grn-page .grn-content > .d-flex:first-child p { max-width: 760px; font-size: 12px; line-height: 1.65; }
.grn-page .grn-content > .d-flex:first-child .rounded-3 { min-width: 160px; border: 1px solid #f0dadd; box-shadow: none !important; }
.grn-page .grn-content > .d-flex:first-child .rounded-3 strong { display: block; margin-top: 3px; color: var(--brand); font-family: 'Manrope', sans-serif; font-size: 25px; font-weight: 800; }
.grn-page .alert { padding: 14px 17px; border-radius: 11px; font-size: 12px; line-height: 1.65; }
.grn-page .alert-info { color: #315d79; background: #edf7fc; border: 1px solid #d7eaf5; }
.grn-page .card { overflow: hidden; margin-bottom: 22px !important; border: 1px solid var(--line) !important; border-radius: 15px; box-shadow: 0 5px 20px rgba(24,39,75,.045) !important; }
.grn-page .card-header { min-height: 60px; display: flex; align-items: center; padding: 16px 22px !important; border-bottom: 1px solid #edf0f4; }
.grn-page .card-header h2 { color: #263142; font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.grn-page .card-header h2:before { content: ''; display: inline-block; width: 4px; height: 18px; margin-right: 10px; vertical-align: -4px; border-radius: 4px; background: var(--brand); }
.grn-page .card-body { padding: 23px; }
.grn-page .form-label { display: block; margin-bottom: 7px; color: #485366; font-size: 11px; font-weight: 800; line-height: 1.5; }
.grn-page .form-control, .grn-page .form-select { min-height: 43px; margin-bottom: 17px; border: 1px solid #dfe5ed; border-radius: 9px; background-color: #fff; font-size: 12px; box-shadow: none; }
.grn-page textarea.form-control { min-height: 84px; resize: vertical; }
.grn-page .form-control:focus, .grn-page .form-select:focus { border-color: #d76b78; box-shadow: 0 0 0 3px rgba(185,28,44,.09); }
.grn-page form .col-12:last-child .btn { min-height: 41px; padding: 10px 16px; border-radius: 9px; font-size: 12px; }
.grn-page .table-responsive { border-radius: 0 0 14px 14px; }
.grn-page .table { min-width: 720px; margin-bottom: 0; color: #344054; font-size: 11px; }
.grn-page .table thead th { padding: 14px 16px; background: #f8f9fb; color: #7b8492; border-bottom: 1px solid #e9edf2; font-size: 9px; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; white-space: nowrap; }
.grn-page .table tbody td { padding: 14px 16px; border-color: #edf0f4; vertical-align: middle; line-height: 1.55; }
.grn-page .table tbody tr:last-child td { border-bottom: 0; }
.grn-page .table tbody tr:hover td { background: #fffafb; }
.grn-page .table tbody td strong { color: #273244; font-weight: 800; }
.grn-page .text-secondary { color: #788394 !important; }
@media (max-width: 991.98px) {
    .grn-page .grn-content { padding: 22px 20px 35px; }
    .grn-page .card-body { padding: 19px; }
}
@media (max-width: 767.98px) {
    .grn-page .grn-content > .d-flex:first-child { align-items: flex-start !important; padding: 20px; }
    .grn-page .grn-content > .d-flex:first-child .rounded-3 { min-width: 125px; }
    .grn-page .card-header { padding: 15px 17px !important; }
    .grn-page .card-body { padding: 17px; }
    .grn-page .table { min-width: 680px; }
}
@media (max-width: 575.98px) {
    .grn-page .grn-content { padding: 14px 12px 28px; }
    .grn-page .grn-content > .d-flex:first-child { gap: 12px !important; padding: 17px 15px; border-radius: 13px; }
    .grn-page .grn-content > .d-flex:first-child h1 { font-size: 21px; }
    .grn-page .grn-content > .d-flex:first-child p { font-size: 11px; }
    .grn-page .grn-content > .d-flex:first-child .rounded-3 { min-width: 95px; padding: 9px 10px !important; }
    .grn-page .grn-content > .d-flex:first-child .rounded-3 strong { font-size: 21px; }
    .grn-page .card { border-radius: 12px; }
    .grn-page .card-body { padding: 14px; }
    .grn-page .form-control, .grn-page .form-select { min-height: 42px; }
}


/* Phase 6 — Material Requests & Issues: refined responsive workflow UI */
.material-issues-page { background: var(--canvas, #f4f6fa); min-height: calc(100vh - 70px); }
.material-issues-content { max-width: 1840px; padding: 28px clamp(13px,2.2vw,36px) 44px; }
.mi-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:22px; padding:26px 29px; border:1px solid #e7ebf1; border-radius:18px; background:linear-gradient(118deg,#fff 0%,#fff 72%,#fff4f5 100%); box-shadow:0 7px 25px rgba(25,39,61,.04); }
.mi-eyebrow,.mi-card-kicker { display:block; color:#b91c2c; font-size:9px; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.mi-hero h1 { margin:8px 0 7px; color:#202b3b; font-size:clamp(23px,2.1vw,31px); font-weight:850; letter-spacing:-.045em; }
.mi-hero p { max-width:720px; margin:0; color:#778293; font-size:12px; line-height:1.7; }
.mi-hero-icon { display:flex; align-items:center; gap:13px; flex-shrink:0; padding:13px 16px; border:1px solid #f0dadd; border-radius:13px; background:#fff; }
.mi-hero-icon>i { display:grid; place-items:center; width:43px; height:43px; border-radius:12px; background:#fff0f1; color:#b91c2c; font-size:21px; }
.mi-hero-icon strong,.mi-hero-icon small { display:block; }.mi-hero-icon strong { color:#273244; font-size:11px; font-weight:850; }.mi-hero-icon small { margin-top:4px; color:#8992a0; font-size:10px; }
.mi-info { display:flex; align-items:flex-start; gap:12px; margin-bottom:22px; padding:14px 17px; border:1px solid #dceaf7; border-radius:12px; background:#f0f7fd; color:#355d7a; }
.mi-info>i { margin-top:2px; font-size:17px; }.mi-info strong,.mi-info span { display:block; }.mi-info strong { margin-bottom:3px; font-size:12px; font-weight:800; }.mi-info span { font-size:11px; line-height:1.6; }
.mi-layout { display:grid; grid-template-columns:minmax(280px,350px) minmax(0,1fr); align-items:start; gap:22px; }
.mi-card { overflow:hidden; border:1px solid #e5eaf1 !important; border-radius:15px; background:#fff; box-shadow:0 5px 20px rgba(24,39,75,.045) !important; }
.mi-card .card-header { display:flex; align-items:center; justify-content:space-between; min-height:70px; padding:16px 21px; border-bottom:1px solid #edf0f4; background:#fff; }
.mi-card .card-header h2 { margin:5px 0 0; color:#263142; font-size:14px; font-weight:850; letter-spacing:-.02em; }
.mi-step { display:grid; place-items:center; width:32px; height:32px; border-radius:9px; background:#fff0f1; color:#b91c2c; font-size:11px; font-weight:850; }
.mi-card .card-body { padding:21px; }.mi-card .form-label { display:block; margin:0 0 7px; color:#455166; font-size:11px; font-weight:800; }
.mi-card .form-control,.mi-card .form-select { min-height:43px; margin-bottom:17px; border:1px solid #dfe5ed; border-radius:9px; color:#293446; font-size:12px; box-shadow:none; }
.mi-card textarea.form-control { min-height:90px; resize:vertical; }.mi-card .form-control:focus,.mi-card .form-select:focus { border-color:#d76c78; box-shadow:0 0 0 3px rgba(185,28,44,.09); }
.mi-card .btn { min-height:39px; padding:9px 13px; border-radius:8px; font-size:11px; font-weight:800; }.mi-card .btn-primary { border-color:#b91c2c; background:#b91c2c; box-shadow:0 3px 8px rgba(185,28,44,.13); }.mi-card .btn-primary:hover { border-color:#941525; background:#941525; }
.mi-stock-hint { display:flex; gap:6px; margin:-8px 0 17px; color:#8a94a3; font-size:10px; line-height:1.5; }
.mi-workspace { min-width:0; }.mi-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; margin-bottom:20px; }
.mi-metric { position:relative; min-width:0; padding:17px 18px; border:1px solid #e6eaf0; border-radius:13px; background:#fff; box-shadow:0 4px 15px rgba(24,39,75,.03); }
.mi-metric span { display:block; color:#778293; font-size:10px; font-weight:700; }.mi-metric strong { display:block; margin-top:8px; color:#253144; font-size:25px; font-weight:850; letter-spacing:-.04em; }.mi-metric>i { position:absolute; top:18px; right:17px; color:#c6ccd5; font-size:20px; }.mi-metric .mi-method { font-size:17px; letter-spacing:-.02em; }
.mi-requests .card-header { min-height:70px; }.mi-count { padding:6px 9px; border:1px solid #e8ebf0; border-radius:7px; background:#f8f9fb; color:#6f7989; font-size:10px; font-weight:800; white-space:nowrap; }
.mi-requests .table { min-width:940px; margin:0; color:#354154; font-size:11px; }.mi-requests .table thead th { padding:13px 14px; border-bottom:1px solid #e8edf2; background:#f8f9fb; color:#7b8492; font-size:9px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; white-space:nowrap; }
.mi-requests .table tbody td { padding:15px 14px; border-color:#edf0f4; vertical-align:middle; line-height:1.5; }.mi-requests .table tbody tr:hover td { background:#fffafb; }.mi-requests .table td strong { display:block; color:#273244; font-weight:850; }.mi-requests .table td small { display:block; margin-top:3px; color:#8993a2; font-size:10px; }.mi-requests .table td .mi-purpose { max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mi-request-no { color:#a51f2d !important; font-size:10px; white-space:nowrap; }.mi-status { display:inline-flex; align-items:center; padding:6px 8px; border:1px solid transparent; border-radius:7px; font-size:9px; font-weight:850; }.mi-status-pending { color:#93610a; background:#fff7df; border-color:#f4e5ad; }.mi-status-approved { color:#1f5c9c; background:#eef6ff; border-color:#d6e8fb; }.mi-status-issued { color:#18734b; background:#eaf8f0; border-color:#ccebd9; }.mi-status-rejected { color:#a52a37; background:#fff0f1; border-color:#f4d2d6; }
.mi-actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-width:130px; }.mi-actions form { margin:0; }.mi-actions .btn { white-space:nowrap; }.mi-muted { color:#8993a2; font-size:10px; }.mi-empty { padding:38px 15px; text-align:center; }.mi-empty>span { display:grid; place-items:center; width:48px; height:48px; margin:0 auto 12px; border-radius:14px; background:#f5f6f8; color:#9ba4b1; font-size:22px; }.mi-empty strong { color:#344054; font-size:12px; }.mi-empty p { margin:6px 0 0; color:#8792a2; font-size:11px; }
.material-issues-page .alert { padding:13px 16px; border-radius:10px; font-size:12px; }
@media(max-width:1199.98px) { .mi-layout { grid-template-columns:minmax(260px,310px) minmax(0,1fr); gap:16px; }.mi-card .card-body { padding:18px; }.mi-metric { padding:15px; } }
@media(max-width:991.98px) { .mi-layout { grid-template-columns:1fr; }.mi-request-no { white-space:normal; } }
@media(max-width:767.98px) { .material-issues-content { padding:20px 15px 34px; }.mi-hero { align-items:flex-start; padding:20px; }.mi-hero-icon { display:none; }.mi-metrics { gap:9px; }.mi-metric { padding:13px; }.mi-metric span { max-width:95px; font-size:9px; }.mi-metric strong { font-size:22px; }.mi-metric .mi-method { font-size:14px; }.mi-requests .card-header { padding:15px; }.mi-requests .table { min-width:900px; } }
@media(max-width:575.98px) { .material-issues-content { padding:14px 11px 26px; }.mi-hero { margin-bottom:15px; padding:17px 16px; border-radius:13px; }.mi-hero h1 { font-size:21px; }.mi-hero p { font-size:11px; }.mi-info { gap:9px; padding:12px; }.mi-info span { font-size:10px; }.mi-card { border-radius:12px; }.mi-card .card-header { min-height:60px; padding:14px 15px; }.mi-card .card-body { padding:15px; }.mi-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }.mi-metric { padding:11px 9px; }.mi-metric>i { top:10px; right:9px; font-size:14px; opacity:.7; }.mi-metric strong { margin-top:11px; font-size:20px; }.mi-metric .mi-method { font-size:12px; }.mi-count { font-size:9px; } }

/* Phase 7 — Stock Adjustments & Physical Audit workspace */
.stock-adjustments-page { min-width:0; background:var(--canvas); }
.stock-adjustments-page .sa-content { max-width:1840px; padding:30px clamp(14px,2.2vw,36px) 46px; }
.sa-hero { display:flex; align-items:center; justify-content:space-between; gap:22px; margin-bottom:22px; padding:26px 28px; background:linear-gradient(120deg,#fff 0%,#fff 72%,#fff4f5 100%); border:1px solid var(--line); border-radius:17px; box-shadow:0 6px 22px rgba(24,39,75,.035); }
.sa-eyebrow,.sa-kicker { display:block; margin-bottom:8px; color:var(--brand); font-size:10px; font-weight:800; letter-spacing:.13em; }
.sa-hero h1 { margin:0 0 8px; color:#202938; font-size:clamp(23px,2vw,30px); font-weight:800; letter-spacing:-.04em; }
.sa-hero p { max-width:760px; margin:0; color:#778294; font-size:12px; line-height:1.7; }
.sa-hero-chip { display:flex; align-items:center; gap:12px; min-width:190px; padding:15px 17px; border:1px solid #f0dadd; border-radius:12px; background:#fff; }
.sa-hero-chip>i { display:grid; place-items:center; width:42px; height:42px; color:var(--brand); background:var(--brand-soft); border-radius:11px; font-size:21px; }
.sa-hero-chip strong,.sa-hero-chip small { display:block; }.sa-hero-chip strong { color:#273244; font-size:12px; font-weight:800; }.sa-hero-chip small { margin-top:4px; color:#87909d; font-size:10px; }
.sa-notice { display:flex; align-items:flex-start; gap:12px; margin-bottom:20px; padding:15px 17px; color:#315d79; background:#edf7fc; border:1px solid #d7eaf5; border-radius:11px; }
.sa-notice>i { margin-top:1px; font-size:18px; }.sa-notice strong,.sa-notice span { display:block; }.sa-notice strong { margin-bottom:3px; font-size:12px; font-weight:800; }.sa-notice span { font-size:11px; line-height:1.6; }
.sa-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:22px; }
.sa-metric { position:relative; overflow:hidden; min-height:108px; padding:19px 21px; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:0 4px 16px rgba(24,39,75,.035); }
.sa-metric span { display:block; color:#7b8492; font-size:11px; font-weight:700; }.sa-metric strong { display:block; margin-top:8px; color:#202938; font-family:'Manrope',sans-serif; font-size:27px; font-weight:800; letter-spacing:-.04em; }.sa-metric>i { position:absolute; right:19px; top:21px; display:grid; place-items:center; width:39px; height:39px; color:var(--brand); background:var(--brand-soft); border-radius:11px; font-size:19px; }
.sa-layout { display:grid; grid-template-columns:minmax(300px,370px) minmax(0,1fr); align-items:start; gap:22px; }
.sa-card { overflow:hidden; border:1px solid var(--line)!important; border-radius:15px; background:#fff; box-shadow:0 5px 20px rgba(24,39,75,.045)!important; }
.sa-card .card-header { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:64px; padding:16px 21px; background:#fff; border-bottom:1px solid #edf0f4; }
.sa-card .card-header h2 { margin:0; color:#263142; font-size:14px; font-weight:800; letter-spacing:-.02em; }.sa-step,.sa-count { display:inline-flex; align-items:center; justify-content:center; min-width:36px; padding:7px 9px; color:#9a1c2b; background:#fff0f1; border-radius:7px; font-size:10px; font-weight:800; white-space:nowrap; }.sa-count { color:#657083; background:#f5f6f8; }
.sa-card .card-body { padding:22px; }.sa-card .form-label { display:block; margin:0 0 7px; color:#475366; font-size:11px; font-weight:800; line-height:1.5; }.sa-card .form-control,.sa-card .form-select { min-height:42px; margin-bottom:16px; border:1px solid #dfe5ed; border-radius:9px; color:#293446; background-color:#fff; font-size:12px; box-shadow:none; }.sa-card textarea.form-control { min-height:88px; resize:vertical; }.sa-card .form-control:focus,.sa-card .form-select:focus { border-color:#d76c78; box-shadow:0 0 0 3px rgba(185,28,44,.09); }.sa-card .btn { min-height:35px; padding:8px 10px; border-radius:8px; font-size:10px; font-weight:800; white-space:nowrap; }.sa-card .btn-primary { background:var(--brand); border-color:var(--brand); }.sa-card .btn-primary:hover { background:var(--brand-dark); border-color:var(--brand-dark); }
.sa-stock-preview { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:-4px 0 17px; padding:11px 12px; background:#f8f9fb; border:1px solid #edf0f4; border-radius:9px; }.sa-stock-preview span { color:#7b8492; font-size:10px; font-weight:700; }.sa-stock-preview strong { color:#273244; font-size:12px; font-weight:800; }.sa-optional { margin-left:4px; color:#9aa2af; font-size:9px; font-weight:600; }.sa-help { display:block; margin:-10px 0 15px; color:#87909d; font-size:10px; line-height:1.55; }.sa-batch-fields { margin:5px 0 16px; padding:15px 13px 2px; border:1px solid #edf0f4; border-radius:11px; background:#fbfcfd; }.sa-subheading { margin-bottom:13px; color:#354052; font-size:11px; font-weight:800; }.sa-subheading span { display:block; margin-top:4px; color:#87909d; font-size:9px; font-weight:500; }
.sa-register .table-responsive { max-width:100%; }.sa-register .table { min-width:980px; margin:0; color:#344054; font-size:11px; }.sa-register .table thead th { padding:14px 13px; color:#7b8492; background:#f8f9fb; border-bottom:1px solid #e9edf2; font-size:9px; font-weight:800; letter-spacing:.065em; text-transform:uppercase; white-space:nowrap; }.sa-register .table tbody td { padding:14px 13px; border-color:#edf0f4; vertical-align:middle; line-height:1.55; }.sa-register .table tbody tr:hover td { background:#fffafb; }.sa-register .table tbody tr:last-child td { border-bottom:0; }.sa-register td strong { color:#273244; font-weight:800; }.sa-register td small { display:block; margin-top:4px; color:#7c8797; font-size:10px; }.sa-register .sa-no { color:var(--brand); white-space:nowrap; }.sa-register .sa-reason { min-width:150px; max-width:220px; overflow-wrap:anywhere; }.sa-status,.sa-direction { display:inline-flex; padding:6px 8px; border:1px solid #e5e9f0; border-radius:6px; background:#f7f8fa; color:#5b6575; font-size:9px; font-weight:800; text-transform:capitalize; }.sa-status-pending { color:#875b08; background:#fff8e7; border-color:#f4e4b7; }.sa-status-approved { color:#225eb2; background:#edf5ff; border-color:#d7e7ff; }.sa-status-posted { color:#167447; background:#eaf8f0; border-color:#cdebd9; }.sa-status-rejected { color:#a32030; background:#fff0f1; border-color:#f4d3d7; }.sa-direction-increase { color:#167447; background:#eaf8f0; border-color:#cdebd9; }.sa-direction-decrease { color:#a32030; background:#fff0f1; border-color:#f4d3d7; }.sa-actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-width:155px; }.sa-actions form { margin:0; }.sa-muted { display:block; max-width:155px; color:#87909d; font-size:10px; line-height:1.5; }.sa-empty { padding:42px 18px; text-align:center; }.sa-empty>span { display:grid; place-items:center; width:48px; height:48px; margin:0 auto 12px; color:var(--brand); background:var(--brand-soft); border-radius:14px; font-size:22px; }.sa-empty strong { color:#273244; font-size:12px; font-weight:800; }.sa-empty p { margin:7px auto 0; color:#87909d; font-size:11px; }
.stock-adjustments-page .alert { padding:14px 17px; border-radius:11px; font-size:12px; line-height:1.6; }
@media(max-width:1199.98px){.sa-layout{grid-template-columns:minmax(280px,330px) minmax(0,1fr);gap:16px}.sa-card .card-body{padding:18px}.sa-register .table{min-width:900px}}
@media(max-width:991.98px){.stock-adjustments-page .sa-content{padding:22px 20px 35px}.sa-layout{grid-template-columns:1fr}.sa-layout>.sa-card:first-child{max-width:none}.sa-metrics{gap:12px}}
@media(max-width:767.98px){.sa-hero{align-items:flex-start;padding:20px}.sa-hero-chip{display:none}.sa-metrics{grid-template-columns:1fr;gap:10px}.sa-metric{min-height:90px;padding:16px 18px}.sa-metric strong{font-size:24px}.sa-card .card-header{padding:15px 17px}.sa-card .card-body{padding:17px}.sa-register .table{min-width:900px}}
@media(max-width:575.98px){.stock-adjustments-page .sa-content{padding:14px 12px 28px}.sa-hero{margin-bottom:16px;padding:18px 16px;border-radius:13px}.sa-hero h1{font-size:21px}.sa-hero p{font-size:11px}.sa-notice{padding:13px}.sa-card .card-body{padding:15px}.sa-register .card-header{align-items:flex-start}}

/* Phase 8 — Inventory reports */
.reports-page{--report-red:#b91c2c;--report-ink:#202733;--report-muted:#788392}
.reports-heading{align-items:center;gap:20px}.reports-heading>.btn{white-space:nowrap;border-radius:10px;padding:11px 17px;font-weight:650;box-shadow:0 5px 14px rgba(185,28,44,.13)}
.report-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 22px}
.report-tab{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 17px;border:1px solid #e6e9ee;border-radius:13px;background:#fff;color:#4c5665;text-decoration:none;font-size:.91rem;font-weight:650;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.report-tab i{font-size:1rem;color:#9aa3af}.report-tab:hover{transform:translateY(-2px);border-color:#e6aab1;box-shadow:0 7px 20px rgba(31,41,55,.06);color:var(--report-red)}.report-tab.active{border-color:#e8b5bb;background:linear-gradient(135deg,#fff7f8,#fff);color:var(--report-red);box-shadow:inset 0 0 0 1px rgba(185,28,44,.04)}.report-tab.active i{color:var(--report-red)}
.report-filter-panel{margin-bottom:20px}.report-filter-panel .panel-heading{align-items:center}.report-filter-panel .form-label{font-size:.79rem;font-weight:700;color:#4c5665;margin-bottom:7px}.report-filter-panel .form-control,.report-filter-panel .form-select{min-height:44px;border-color:#dfe4ea;border-radius:9px;font-size:.88rem}.report-filter-panel .form-control:focus,.report-filter-panel .form-select:focus{border-color:#d56b76;box-shadow:0 0 0 .2rem rgba(185,28,44,.1)}.report-filter-panel .btn{min-height:44px;border-radius:9px}.report-count{border-radius:20px;background:#f3f5f8;color:#5f6875;padding:7px 11px;font-size:.78rem;font-weight:700;white-space:nowrap}
.report-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.report-metric{display:flex;align-items:center;gap:13px;min-width:0;padding:18px;border:1px solid #e8ebf0;border-radius:14px;background:#fff;box-shadow:0 4px 16px rgba(30,41,59,.035)}.report-metric .metric-icon{display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;border-radius:12px;background:#fff0f1;color:#b91c2c;font-size:1.15rem}.report-metric>div{display:flex;flex-direction:column;min-width:0;gap:3px}.report-metric small{color:#798392;font-size:.75rem;font-weight:650}.report-metric strong{color:#252d39;font-size:1.35rem;letter-spacing:-.035em;line-height:1.3;overflow-wrap:anywhere}.report-metric>div>span{color:#98a0ac;font-size:.72rem}.report-metric.metric-warning .metric-icon{background:#fff6e6;color:#a76808}.report-metric.metric-danger .metric-icon{background:#fff0f0;color:#c22c3c}
.report-table-panel{overflow:hidden}.report-table-panel>.panel-heading{align-items:center}.report-live{display:inline-flex;align-items:center;gap:7px;color:#788392;font-size:.77rem;white-space:nowrap}.report-live>span{width:7px;height:7px;border-radius:50%;background:#18a66a;box-shadow:0 0 0 4px #e6f7ee}.report-table-wrap{border-top:1px solid #edf0f3}.report-table{margin:0;white-space:nowrap;font-size:.84rem}.report-table thead th{padding:13px 16px;background:#f7f8fa;color:#667180;border-bottom:1px solid #e8ebef;font-size:.72rem;letter-spacing:.035em;text-transform:uppercase;font-weight:750}.report-table tbody td{padding:14px 16px;border-color:#f0f2f5;color:#434d5a;vertical-align:middle}.report-table tbody tr:hover td{background:#fffafb}.numeric-value{font-variant-numeric:tabular-nums}.report-status{display:inline-flex;align-items:center;padding:6px 9px;border-radius:7px;font-size:.72rem;font-weight:750;letter-spacing:.01em}.status-success{background:#e8f7ee;color:#197447}.status-warning{background:#fff3dc;color:#936008}.status-danger{background:#ffebed;color:#b42332}.status-neutral{background:#eef1f5;color:#606b79}.transaction-label{font-weight:650;color:#454f5e}.report-empty{display:flex;align-items:center;flex-direction:column;text-align:center;padding:46px 18px;color:#788392;white-space:normal}.report-empty>span{display:grid;place-items:center;width:54px;height:54px;margin-bottom:13px;border-radius:16px;background:#f4f5f8;color:#8a94a3;font-size:1.45rem}.report-empty strong{color:#343d49;font-size:.98rem}.report-empty p{max-width:390px;margin:6px 0 0;font-size:.84rem}.report-table-footer{display:flex;justify-content:space-between;gap:12px;padding:13px 18px;border-top:1px solid #edf0f3;color:#929aa6;font-size:.75rem}
@media(max-width:1199.98px){.report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.report-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767.98px){.reports-heading{align-items:flex-start;flex-direction:column}.reports-heading>.btn{width:100%;justify-content:center}.report-tabs{gap:8px}.report-tab{padding:12px;font-size:.82rem}.report-metrics{gap:9px}.report-metric{padding:13px;gap:10px}.report-metric .metric-icon{flex-basis:36px;width:36px;height:36px;font-size:1rem}.report-metric strong{font-size:1.13rem}.report-metric>div>span{font-size:.68rem}.report-table-footer{flex-direction:column}.report-filter-panel .panel-heading{align-items:flex-start;flex-direction:column}.report-count{align-self:flex-start}}
@media(max-width:420px){.report-tabs{grid-template-columns:1fr 1fr}.report-metric{align-items:flex-start;flex-direction:column}.report-metric strong{font-size:1.05rem}}

/* Phase 9 — Users & Roles: consistent responsive administration UI */
.users-page{padding-bottom:40px}.users-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.users-heading h1{margin:5px 0 8px;font-weight:800;letter-spacing:-.035em}.users-heading p{margin:0;color:var(--text-muted,#667085);max-width:720px}.users-heading-icon{width:66px;height:66px;display:grid;place-items:center;flex:0 0 auto;border-radius:20px;background:linear-gradient(145deg,#fff1f2,#ffe4e6);color:#b91c2c;font-size:1.7rem;border:1px solid #fecdd3}.users-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}.users-stat{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid #e8ebf0;border-radius:16px;padding:19px 20px;box-shadow:0 5px 18px rgba(16,24,40,.035)}.users-stat .stat-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:#fff1f2;color:#b91c2c;font-size:1.2rem}.users-stat small{display:block;color:#667085;font-size:.78rem;font-weight:600;margin-bottom:3px}.users-stat strong{display:block;color:#182230;font-size:1.65rem;line-height:1.15}.users-layout{display:grid;grid-template-columns:minmax(280px,340px) minmax(0,1fr);gap:20px;align-items:start}.users-card{border:1px solid #e7eaf0;border-radius:17px;box-shadow:0 7px 24px rgba(16,24,40,.045);overflow:visible;background:#fff}.users-card>.card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:21px 22px;background:#fff;border-bottom:1px solid #edf0f4;border-radius:17px 17px 0 0}.users-card>.card-header h2{font-size:1.02rem;font-weight:750;margin:0 0 5px;color:#182230}.users-card>.card-header h2 i{color:#b91c2c}.users-card>.card-header p{margin:0;color:#7b8494;font-size:.82rem}.users-card>.card-body{padding:22px}.users-form .form-label,.user-edit-form .form-label,.user-reset-form .form-label{font-size:.81rem;font-weight:650;color:#344054;margin-bottom:7px}.users-form .form-control,.users-form .form-select,.user-edit-form .form-control,.user-edit-form .form-select,.user-reset-form .form-control{min-height:43px;border-color:#d9dee7;border-radius:10px;box-shadow:none}.users-form .form-control:focus,.users-form .form-select:focus,.user-edit-form .form-control:focus,.user-edit-form .form-select:focus,.user-reset-form .form-control:focus{border-color:#e36a75;box-shadow:0 0 0 3px rgba(185,28,44,.1)}.users-form .btn-brand{min-height:45px;border-radius:10px;font-weight:700}.role-note{display:flex;align-items:flex-start;margin-top:20px;padding:13px;border-radius:11px;background:#f8fafc;color:#667085;font-size:.78rem;line-height:1.55}.role-note i{color:#b91c2c;margin-top:2px}.users-directory{min-width:0}.users-directory-header{padding:21px 22px!important}.users-count{display:inline-flex;align-items:center;padding:6px 10px;border-radius:30px;background:#f2f4f7;color:#475467;font-size:.75rem;font-weight:700;white-space:nowrap}.users-table{min-width:780px}.users-table thead th{background:#f8fafc;color:#667085;font-size:.69rem;text-transform:uppercase;letter-spacing:.055em;font-weight:750;padding:13px 16px;border-bottom:1px solid #e7eaf0;white-space:nowrap}.users-table tbody td{padding:15px 16px;border-color:#f0f2f5}.users-table tbody tr:hover{background:#fffafb}.user-identity{display:flex;align-items:center;gap:11px;min-width:190px}.user-avatar{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:#fff1f2;color:#b91c2c;font-weight:800}.user-identity strong,.user-identity small{display:block}.user-identity strong{font-size:.84rem;color:#1d2939}.user-identity small{font-size:.74rem;color:#7b8494;margin-top:3px}.role-pill{display:inline-flex;align-items:center;padding:6px 9px;border-radius:7px;font-size:.7rem;font-weight:750;white-space:nowrap;background:#f2f4f7;color:#475467}.role-admin{background:#fff1f2;color:#b42332}.role-store_manager{background:#fff4e5;color:#9a6700}.role-store_staff{background:#eef4ff;color:#344db5}.role-department_user{background:#ecfdf3;color:#027a48}.role-auditor{background:#f2f4f7;color:#475467}.account-status{display:inline-flex;align-items:center;gap:6px;font-size:.75rem;font-weight:700;white-space:nowrap}.account-status i{font-size:.48rem}.account-status.is-active{color:#067647}.account-status.is-inactive{color:#b42318}.last-login{font-size:.77rem;color:#667085;white-space:nowrap}.user-manage{position:relative}.user-manage summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;padding:8px 10px;border:1px solid #e4e7ec;border-radius:9px;background:#fff;color:#344054;font-size:.77rem;font-weight:700;white-space:nowrap}.user-manage summary::-webkit-details-marker{display:none}.user-manage summary:hover,.user-manage[open] summary{border-color:#fda4af;color:#b91c2c;background:#fff7f8}.user-manage-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:20;width:270px;padding:16px;background:#fff;border:1px solid #e4e7ec;border-radius:13px;box-shadow:0 18px 45px rgba(16,24,40,.16)}.user-manage-panel .btn{border-radius:9px;font-weight:650}.user-manage-panel .btn-brand{background:#b91c2c;border-color:#b91c2c;color:#fff}.users-empty{display:flex;flex-direction:column;align-items:center;gap:7px;padding:42px 20px;color:#667085}.users-empty i{font-size:2rem;color:#b91c2c}.users-empty strong{color:#344054}.users-empty span{font-size:.82rem}
@media(max-width:1200px){.users-layout{grid-template-columns:minmax(260px,300px) minmax(0,1fr)}.users-card>.card-body{padding:18px}.users-directory-header{padding:18px!important}}
@media(max-width:991.98px){.users-layout{grid-template-columns:1fr}.users-layout>.users-card:first-child{order:0}.users-directory{order:1}.users-stats{gap:12px}.users-stat{padding:16px}}
@media(max-width:575.98px){.users-heading{align-items:flex-start}.users-heading-icon{width:48px;height:48px;border-radius:14px;font-size:1.3rem}.users-heading h1{font-size:1.65rem}.users-stats{grid-template-columns:1fr;gap:10px}.users-stat{padding:13px 15px}.users-stat strong{font-size:1.35rem}.users-card>.card-header,.users-card>.card-body{padding:16px}.user-manage-panel{position:fixed;left:16px;right:16px;top:20%;width:auto;max-height:65vh;overflow-y:auto}.users-directory-header{align-items:flex-start!important}}


/* Phase 10: audit log and access-control UI */
.audit-page .audit-heading{display:flex;justify-content:space-between;align-items:center;gap:1.25rem;margin-bottom:1.5rem}
.audit-page .audit-heading h1{font-size:clamp(1.65rem,2.5vw,2.2rem);font-weight:800;letter-spacing:-.035em;margin:.25rem 0 .5rem;color:#202735}
.audit-page .audit-heading p{margin:0;color:#687386;max-width:760px}
.audit-page .audit-heading-icon{width:64px;height:64px;display:grid;place-items:center;flex:0 0 auto;border-radius:18px;background:#fff1f2;color:#b91c2c;font-size:1.65rem}
.audit-page .audit-filter-card,.audit-page .audit-table-card{border:1px solid #e7eaf0;border-radius:16px;box-shadow:0 8px 28px rgba(20,32,55,.045);overflow:hidden}
.audit-page .audit-filter-card .card-body{padding:1.25rem}
.audit-page .form-label{font-size:.82rem;font-weight:700;color:#394354}
.audit-page .form-control,.audit-page .form-select{min-height:43px;border-color:#dce1e8;border-radius:9px}
.audit-page .form-control:focus,.audit-page .form-select:focus{border-color:#d66a75;box-shadow:0 0 0 .2rem rgba(185,28,44,.1)}
.audit-page .audit-table-card .card-header{background:#fff;border-bottom:1px solid #edf0f4;padding:1.1rem 1.25rem}
.audit-page .audit-table thead th{background:#f7f8fa;color:#687386;font-size:.72rem;text-transform:uppercase;letter-spacing:.055em;white-space:nowrap;padding:.9rem 1rem;border-bottom:1px solid #e8ebf0}
.audit-page .audit-table tbody td{padding:.9rem 1rem;border-color:#eef0f4;font-size:.86rem;vertical-align:top}
.audit-page .audit-table tbody tr:hover{background:#fffafb}
.audit-page .audit-date{white-space:nowrap;color:#596579;font-variant-numeric:tabular-nums}
.audit-page .audit-action{display:inline-block;padding:.3rem .55rem;border:1px solid #f3cbd0;background:#fff4f5;color:#9f1d2a;border-radius:7px;font-size:.78rem;font-weight:700;white-space:nowrap}
.audit-page .audit-details{min-width:220px;max-width:380px;overflow-wrap:anywhere;color:#4b5565}
.audit-page .audit-empty{display:flex;min-height:180px;align-items:center;justify-content:center;flex-direction:column;gap:.4rem;color:#748094}
.audit-page .audit-empty i{font-size:2rem;color:#b8c0cc}
.audit-page .audit-empty strong{color:#374151}
@media(max-width:767.98px){.audit-page .audit-heading-icon{width:48px;height:48px;border-radius:14px;font-size:1.3rem}.audit-page .audit-filter-card .card-body{padding:1rem}.audit-page .audit-table tbody td{padding:.75rem}.audit-page .audit-details{min-width:180px}}


/* Phase 11 — Role permissions UI */
.permissions-page{max-width:1500px}.permissions-heading{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;margin-bottom:1.5rem}.permissions-heading h1{font-weight:800;letter-spacing:-.035em;margin:.25rem 0 .4rem}.permissions-heading p{color:var(--text-muted,#667085);margin:0}.permissions-heading-mark{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:#fff1f2;color:#b91c2c;font-size:1.55rem;border:1px solid #fecdd3}.permissions-card{border:1px solid #e7eaf0;border-radius:18px;box-shadow:0 10px 28px rgba(16,24,40,.055);overflow:hidden}.permissions-card .card-body{padding:clamp(1rem,2.6vw,2rem)}.permissions-count{display:inline-flex;gap:.5rem;align-items:center;border-radius:999px;padding:.55rem .85rem;background:#f8fafc;color:#475467;font-size:.875rem;font-weight:650}.permissions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.permission-option{display:flex;align-items:center;gap:.85rem;position:relative;border:1px solid #e4e7ec;border-radius:13px;padding:1rem;cursor:pointer;transition:border-color .18s,box-shadow .18s,background .18s;min-width:0}.permission-option:hover{border-color:#fda4af;background:#fffafa}.permission-option:focus-within{outline:3px solid rgba(185,28,44,.18);outline-offset:2px}.permission-option input{width:18px;height:18px;accent-color:#b91c2c;flex:0 0 auto}.permission-copy{display:flex;flex-direction:column;gap:.2rem;min-width:0;flex:1}.permission-copy strong{font-size:.93rem;color:#101828;font-weight:700}.permission-copy small{color:#667085;font-size:.76rem;overflow-wrap:anywhere}.permission-toggle{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:#f2f4f7;color:#98a2b3;flex:0 0 auto}.permission-option:has(input:checked){border-color:#fda4af;background:#fff7f7}.permission-option:has(input:checked) .permission-toggle{background:#b91c2c;color:#fff}.permissions-actions{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid #eaecf0}.permissions-actions .btn{border-radius:10px;padding:.7rem 1rem;font-weight:700}@media(max-width:767.98px){.permissions-grid{grid-template-columns:1fr}.permissions-heading-mark{display:none}.permissions-actions{align-items:stretch;flex-direction:column}.permissions-actions .btn{width:100%}.permissions-count{margin-top:.5rem}}

/* Phase 14 — Workflow dashboard and inbox */
.dashboard-heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.workflow-dashboard .page-heading{gap:18px}.workflow-stat{height:100%;transition:transform .18s ease,box-shadow .18s ease}.workflow-stat:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(27,39,56,.08)}.workflow-queue-list{display:flex;flex-direction:column}.workflow-queue-item{display:flex;align-items:center;gap:12px;padding:14px 2px;border-bottom:1px solid #edf0f4;color:#344054;text-decoration:none;transition:background .15s ease}.workflow-queue-item:last-child{border-bottom:0}.workflow-queue-item:hover{background:#fffafb}.workflow-queue-icon{display:inline-grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:11px;background:#fff0f1;color:#b42332;font-size:17px}.workflow-queue-label{flex:1;font-size:13px;font-weight:650}.workflow-count{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:30px;padding:0 9px;border-radius:9px;background:#f0f2f5;color:#667085;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}.workflow-count.has-items{background:#fff0f1;color:#b42332}.workflow-empty{display:flex;align-items:center;flex-direction:column;text-align:center;padding:42px 20px;color:#7b8492}.workflow-empty.compact{padding:30px 16px}.workflow-empty>i{display:grid;place-items:center;width:48px;height:48px;margin-bottom:12px;border-radius:14px;background:#eaf8f0;color:#198754;font-size:23px}.workflow-empty strong{color:#344054;font-size:13px;font-weight:800}.workflow-empty span{max-width:400px;margin-top:6px;font-size:12px;line-height:1.6}.workflow-quick-action{min-height:75px}.workflow-table{min-width:620px;margin:0;color:#344054;font-size:12px}.workflow-table thead th{padding:13px 15px;background:#f8f9fb;color:#7b8492;border-bottom:1px solid #e9edf2;font-size:10px;font-weight:800;letter-spacing:.045em;text-transform:uppercase;white-space:nowrap}.workflow-table tbody td{padding:13px 15px;border-color:#edf0f4;vertical-align:middle}.workflow-table tbody tr:hover td{background:#fffafb}.status-danger{color:#a42332;background:#fff0f1}.recent-activity-list{display:flex;flex-direction:column}.recent-activity-item{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid #edf0f4}.recent-activity-item:last-child{border-bottom:0}.activity-dot{width:9px;height:9px;flex:0 0 9px;margin-top:5px;border-radius:50%;background:#c12b3a;box-shadow:0 0 0 4px #fff0f1}.activity-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.activity-copy strong{font-size:12px;color:#344054}.activity-copy span,.activity-copy small{font-size:10px;color:#87909d;overflow-wrap:anywhere}.status-pill.status-danger{color:#a42332;background:#fff0f1}
@media(max-width:767.98px){.dashboard-heading-actions{width:100%;justify-content:flex-start}.workflow-dashboard .page-heading{align-items:flex-start;flex-direction:column}.workflow-queue-item{gap:9px}.workflow-queue-label{font-size:12px}.workflow-table{min-width:600px}}


/* Phase 15 — Email notification settings */
.alert-option{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 16px;border:1px solid #e7e9ef;border-radius:12px;background:#fff;margin-bottom:10px}
.alert-option strong{display:block;color:#202939;font-size:.94rem}
.alert-option small{display:block;color:#667085;margin-top:3px;line-height:1.45}
.alert-option .form-check-input{width:1.2rem;height:1.2rem;flex:0 0 auto;cursor:pointer;accent-color:#b91c2c}
.alert-option-master{background:#fff8f8;border-color:#f2c8ce}
.form-text{color:#667085}
@media(max-width:575.98px){.alert-option{align-items:flex-start;padding:13px}.alert-option .form-check-input{margin-top:3px}}
