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

@font-face {
    font-family: 'Material Symbols Rounded';
    src: url('../fonts/material-symbols-rounded.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: block;
}

:root {
    --ame-teal: #049da6;
    --ame-teal-dark: #047985;
    --ame-teal-soft: #eaf7f8;
    --ame-teal-pale: #f4fbfb;
    --ame-orange: #ff8a2a;
    --ame-orange-dark: #e96f0c;
    --ink: #122b3a;
    --muted: #667784;
    --line: #d9e2e6;
    --line-soft: #edf1f3;
    --paper: #ffffff;
    --surface: #f8fafb;
    --success: #278257;
    --warning: #a96900;
    --danger: #bc3b35;
    --info: #286e9f;
    --radius: 12px;
    --shadow-menu: 0 18px 44px rgba(18, 43, 58, .14);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.025em; }
.material-symbols-rounded { display: inline-block; direction: ltr; font-family: 'Material Symbols Rounded'; font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; font-size: 22px; font-style: normal; font-weight: 400; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; letter-spacing: normal; line-height: 1; overflow: hidden; text-transform: none; white-space: nowrap; word-wrap: normal; }

.app-header { position: sticky; inset: 0 0 auto; z-index: 50; height: 88px; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); }
.nav-shell { width: min(1440px, 100%); height: 100%; margin: auto; padding: 0 34px; display: flex; align-items: stretch; }
.brand-logo { width: 164px; display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo img { width: 142px; height: auto; display: block; }
.primary-nav { display: flex; align-items: stretch; gap: 22px; margin-left: 32px; }
.nav-link { position: relative; display: flex; gap: 9px; align-items: center; padding: 0 8px; color: #425563; font-weight: 600; white-space: nowrap; }
.nav-link::after { content: ''; position: absolute; height: 3px; left: 8px; right: 8px; bottom: 0; background: var(--ame-teal); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform .18s ease; }
.nav-link:hover, .nav-link.active { color: var(--ame-teal-dark); }
.nav-link.active::after { transform: scaleX(1); }
.nav-group { position: relative; display: flex; }
.nav-menu { display: none; position: absolute; left: -12px; top: 72px; min-width: 190px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow-menu); }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { display: grid; }
.nav-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 13px; color: #425563; white-space: nowrap; }
.nav-menu a:hover { background: var(--ame-teal-soft); color: var(--ame-teal-dark); }
.nav-menu .material-symbols-rounded { font-size: 19px; }
.admin-menu { min-width: 230px; }
.header-tools { margin-left: auto; display: flex; align-items: stretch; gap: 16px; }
.help-link { display: flex; align-items: center; gap: 7px; padding: 0 14px; color: #425563; font-weight: 600; }
.help-link:hover { color: var(--ame-teal-dark); }
.profile-menu { position: relative; border-left: 1px solid var(--line); display: flex; align-items: center; }
.profile-menu summary { list-style: none; cursor: pointer; min-width: 220px; height: 100%; display: flex; align-items: center; gap: 11px; padding-left: 18px; }
.profile-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ame-teal); font-weight: 700; }
.profile-copy { display: grid; min-width: 0; line-height: 1.25; }
.profile-copy b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; max-width: 130px; white-space: nowrap; }
.profile-copy small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.profile-menu .chevron { margin-left: auto; font-size: 19px; transition: transform .2s; }
.profile-menu[open] .chevron { transform: rotate(180deg); }
.profile-popover { position: absolute; right: 0; top: 75px; min-width: 250px; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-menu); }
.profile-popover p { padding: 6px 8px 12px; margin-bottom: 7px; border-bottom: 1px solid var(--line-soft); }
.profile-popover small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.profile-action { border: 0; background: transparent; width: 100%; padding: 9px 8px; display: flex; align-items: center; gap: 9px; border-radius: 8px; color: var(--danger); cursor: pointer; }
.profile-action:hover { background: #fff2f1; }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--ink); cursor: pointer; }

.app-main { width: min(1380px, 100%); min-height: calc(100vh - 140px); margin: 0 auto; padding: 28px 32px 70px; }
.page-heading { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line-soft); margin-bottom: 30px; }
.page-heading h1 { margin: 2px 0 0; font-size: 30px; line-height: 1.15; }
.eyebrow { margin: 0; color: var(--ame-teal-dark); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.app-footer { width: min(1380px, 100%); margin: auto; border-top: 1px solid var(--line-soft); color: var(--muted); padding: 18px 32px 28px; display: flex; justify-content: space-between; font-size: 11px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ame-teal); border-radius: 7px; padding: 10px 17px; background: var(--ame-teal); color: white; font-weight: 700; font-size: 13px; cursor: pointer; transition: background .16s, border-color .16s, transform .16s; }
.button:hover { background: var(--ame-teal-dark); border-color: var(--ame-teal-dark); }
.button:active { transform: translateY(1px); }
.button.primary-orange { background: var(--ame-orange); border-color: var(--ame-orange); }
.button.primary-orange:hover { background: var(--ame-orange-dark); border-color: var(--ame-orange-dark); }
.button.secondary { background: white; color: var(--ame-teal-dark); border-color: #bdd8db; }
.button.secondary:hover { background: var(--ame-teal-pale); }
.button.white { background: white; color: var(--ame-teal-dark); border-color: white; }
.button.danger { color: var(--danger); background: white; border-color: #efcbc8; }
.button.full { width: 100%; padding: 12px 17px; }
.link { border: 0; padding: 0; color: var(--ame-teal-dark); background: transparent; font-weight: 700; cursor: pointer; }
.danger-text { color: var(--danger); }

.dashboard-welcome { min-height: 248px; padding: 36px 42px; border: 1px solid #e3eff0; background: var(--ame-teal-pale); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .9fr); align-items: center; gap: 44px; border-radius: var(--radius); }
.dashboard-welcome h1 { font-size: clamp(34px, 3.2vw, 48px); line-height: 1.08; margin-bottom: 8px; }
.dashboard-welcome .welcome-copy > p { color: #506473; font-size: 18px; margin-bottom: 26px; }
.dashboard-welcome .button { padding: 13px 23px; font-size: 15px; }
.period-panel { padding-left: 44px; border-left: 1px solid #cfe1e3; display: grid; gap: 27px; }
.period-item { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 14px; }
.period-item .material-symbols-rounded { font-size: 35px; color: var(--ame-teal); }
.period-item.deadline .material-symbols-rounded { color: var(--ame-orange); }
.period-item span:not(.material-symbols-rounded) { display: block; color: #445966; font-size: 13px; }
.period-item b { display: block; margin-top: 3px; font-size: 17px; }
.period-item small { color: var(--muted); }

.guide-section { margin-top: 26px; }
.guide-section h2, .dashboard-grid h2 { font-size: 18px; margin: 0 0 13px; }
.claim-guide { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: repeat(3, 1fr); }
.guide-step { min-height: 160px; display: grid; grid-template-columns: 34px 66px 1fr; gap: 17px; align-items: center; padding: 28px 25px; position: relative; }
.guide-step + .guide-step { border-left: 1px solid var(--line); }
.step-number { align-self: start; width: 25px; height: 25px; display: grid; place-items: center; background: var(--ame-teal); color: white; border-radius: 50%; font-size: 11px; font-weight: 700; }
.step-icon { width: 62px; height: 62px; display: grid; place-items: center; color: var(--ame-teal); background: var(--ame-teal-pale); border-radius: 14px; }
.step-icon .material-symbols-rounded { font-size: 34px; }
.guide-step h3 { font-size: 16px; margin-bottom: 5px; }
.guide-step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.guide-tip { grid-column: 1/-1; display: flex; align-items: center; gap: 7px; min-height: 48px; padding: 0 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.guide-tip .material-symbols-rounded { color: var(--ame-teal); font-size: 19px; }
.guide-tip a { margin-left: auto; color: var(--ame-teal-dark); font-weight: 700; }

.dashboard-grid { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dashboard-panel { border: 1px solid var(--line); border-radius: var(--radius); min-height: 210px; overflow: hidden; }
.dashboard-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.dashboard-panel-head h2 { margin: 0; }
.dashboard-panel-head a, .panel-footer { color: var(--ame-teal-dark); font-size: 12px; font-weight: 700; }
.claim-highlight { min-height: 115px; padding: 21px; display: grid; grid-template-columns: 52px 1fr auto 20px; gap: 14px; align-items: center; }
.claim-highlight-icon { width: 48px; height: 56px; display: grid; place-items: center; color: var(--ame-teal); background: var(--ame-teal-pale); border-radius: 8px; }
.claim-highlight h3 { font-size: 14px; margin: 0 0 4px; }
.claim-highlight p { margin: 0; color: var(--muted); font-size: 12px; }
.claim-highlight-amount { text-align: right; }
.claim-highlight-amount span { display: block; color: var(--muted); font-size: 11px; }
.claim-highlight-amount b { font-size: 18px; }
.panel-footer { display: block; border-top: 1px solid var(--line-soft); padding: 12px 20px; text-align: right; }
.activity-list { list-style: none; margin: 0; padding: 5px 20px 8px; }
.activity-list li { position: relative; display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; padding: 11px 0; align-items: center; }
.activity-list li + li { border-top: 1px solid var(--line-soft); }
.activity-list .activity-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: var(--ame-teal); background: var(--ame-teal-soft); }
.activity-list .material-symbols-rounded { font-size: 17px; }
.activity-list b { display: block; font-size: 12px; }
.activity-list small { color: var(--muted); font-size: 10px; }
.activity-amount { text-align: right; }
.activity-amount b { font-size: 12px; }
.dashboard-help { width: fit-content; max-width: 100%; margin-top: 26px; padding: 12px 18px; border-radius: 8px; background: var(--ame-teal-pale); color: var(--muted); display: flex; align-items: center; gap: 8px; font-size: 12px; }
.dashboard-help .material-symbols-rounded { color: var(--ame-teal); font-size: 19px; }
.dashboard-help a { color: var(--ame-teal-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0 38px; }
.metrics article, .card { background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.metrics article { padding: 20px; }
.metrics span, .metrics small { display: block; color: var(--muted); font-size: 12px; }
.metrics b { display: block; font-size: 27px; margin: 12px 0 5px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 0 0 18px; }
.section-head h2 { margin: 5px 0 0; font-size: 22px; }
.section-head p:last-child { color: var(--muted); margin: 5px 0 0; }
.card { padding: 22px; }
.card + .card { margin-top: 18px; }
.table-wrap { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
th { color: var(--muted); background: var(--surface); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
tbody tr { transition: background .14s; }
tbody tr:hover { background: #fbfdfd; }
tr:last-child td { border-bottom: 0; }
td a { color: var(--ame-teal-dark); font-weight: 700; }
.empty { text-align: center !important; color: var(--muted); padding: 48px 20px !important; }
.table-sub { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; }

.status { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: #eef2f3; color: #566770; font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: capitalize; }
.status.approved { background: #e8f5eb; color: var(--success); }
.status.pending_hod, .status.pending_hod_2, .status.pending_hr, .status.pending_finance { background: #fff3de; color: var(--warning); }
.status.rejected { background: #fff0ef; color: var(--danger); }
.status.returned { background: #eaf2fa; color: var(--info); }
.alert { margin-bottom: 20px; padding: 13px 16px; border: 1px solid; border-radius: 9px; display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.alert.success { color: var(--success); background: #f0faf3; border-color: #cee8d7; }
.alert.error { color: var(--danger); background: #fff5f4; border-color: #f1d3d0; }
.alert ul { margin: 5px 0 0; padding-left: 18px; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.form-layout > .submit-panel { position: sticky; top: 116px; }
.card-title { display: flex; gap: 13px; margin-bottom: 23px; }
.card-title > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ame-teal); font-size: 11px; font-weight: 700; }
.card-title h2 { font-size: 18px; margin: 0 0 3px; }
.card-title p { color: var(--muted); font-size: 12px; margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
label { display: block; color: #29404e; font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; margin-top: 7px; padding: 11px 12px; color: var(--ink); background: white; border: 1px solid #cbd7dc; border-radius: 7px; font-size: 13px; font-weight: 500; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #9ebbc0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ame-teal); box-shadow: 0 0 0 3px rgba(4,157,166,.13); }
textarea { min-height: 88px; resize: vertical; }
label small { display: block; color: var(--muted); font-weight: 400; margin-top: 6px; }
.wide { grid-column: 1/-1; }
.expense-item { border-top: 1px solid var(--line); padding: 26px 0; }
.expense-item:first-child { border-top: 0; padding-top: 0; }
.expense-head { display: flex; justify-content: space-between; margin-bottom: 16px; }
.upload { padding: 16px; border: 1px dashed #9fbcc0; border-radius: 9px; background: var(--ame-teal-pale); }
.upload input { border: 0; background: transparent; padding: 5px 0; box-shadow: none; }
.file-preview { display: grid; gap: 8px; margin-top: 12px; }
.file-preview-empty { margin: 0; padding: 12px; border-radius: 7px; background: rgba(255,255,255,.7); color: var(--muted); font-size: 11px; text-align: center; }
.file-preview-item { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 8px; border: 1px solid #d5e4e6; border-radius: 9px; background: white; }
.file-preview-visual { width: 54px; height: 54px; display: grid; place-items: center; overflow: hidden; border-radius: 7px; background: var(--ame-teal-soft); color: var(--ame-teal-dark); }
.file-preview-visual img { width: 100%; height: 100%; object-fit: cover; }
.file-preview-visual .material-symbols-rounded { font-size: 27px; }
.file-preview-details { min-width: 0; }
.file-preview-details b, .file-preview-details small { display: block; }
.file-preview-details b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.file-preview-details small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.file-preview-actions { display: flex; align-items: center; gap: 9px; }
.file-preview-actions a, .file-preview-actions button { border: 0; padding: 3px; background: transparent; color: var(--ame-teal-dark); font-size: 10px; font-weight: 700; cursor: pointer; }
.file-preview-actions button { color: var(--danger); }
.submit-panel h3 { margin: 7px 0; }
.submit-panel ul { padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.total { border-top: 1px solid var(--line); margin: 20px 0; padding-top: 18px; display: flex; justify-content: space-between; }
.fine { text-align: center; color: var(--muted); font-size: 10px; margin: 10px 0 0; }
.conditional { display: none; padding: 16px; border-radius: 9px; background: var(--ame-teal-pale); }
.conditional.show { display: block; }
.conditional > .eyebrow { margin-bottom: 12px; }

.detail-head { padding: 30px; border: 1px solid #cfe3e5; border-radius: var(--radius); background: var(--ame-teal-pale); display: flex; justify-content: space-between; gap: 25px; }
.detail-head h2 { font-size: 34px; margin: 14px 0 5px; }
.detail-head p { color: var(--muted); margin: 0; }
.meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-content: center; }
.meta span { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.meta b { display: block; max-width: 170px; margin-top: 5px; color: var(--ink); font-size: 12px; text-transform: none; }
.meta small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; text-transform: none; }
.timeline { display: grid; grid-template-columns: repeat(var(--timeline-steps, 4), 1fr); margin: 30px 0; }
.timeline div { padding-top: 10px; border-top: 2px solid #d3dde0; color: var(--muted); font-size: 11px; }
.timeline span { display: block; width: 10px; height: 10px; margin: -16px 0 9px; border-radius: 50%; background: #c8d3d7; }
.timeline .current { color: var(--ame-teal-dark); border-color: var(--ame-teal); font-weight: 700; }
.timeline .current span { background: var(--ame-teal); }
.item-detail { display: flex; justify-content: space-between; align-items: center; }
.item-detail-copy { min-width: 0; flex: 1; }
.item-detail h3 { margin: 4px 0; }
.item-detail p { color: var(--muted); margin-bottom: 0; }
.item-detail > div:last-child { text-align: right; }
.item-detail-amount { min-width: 210px; margin-left: 28px; }
.item-detail small { display: block; color: var(--muted); margin-top: 5px; }
.saved-attachments { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.saved-attachment { max-width: 330px; min-width: 230px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 20px; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); }
.saved-attachment:hover { border-color: var(--ame-teal); background: var(--ame-teal-pale); }
.saved-attachment > span:nth-child(2) { min-width: 0; }
.saved-attachment b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.saved-attachment small { margin: 2px 0 0; font-size: 9px; }
.saved-attachment > .material-symbols-rounded { color: var(--ame-teal-dark); font-size: 17px; }
.attachment-thumb { width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border-radius: 7px; background: var(--ame-teal-soft); color: var(--ame-teal-dark); }
.attachment-thumb img { width: 100%; height: 100%; object-fit: cover; }
.review-box { margin-top: 22px; }
.review-box label { margin: 14px 0; }
.actions { display: flex; justify-content: flex-end; gap: 10px; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: white; }
.login-art { padding: 48px 64px; background: var(--ame-teal-pale); display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid #dcebed; }
.login-brand img { width: 175px; }
.login-art h1 { max-width: 580px; margin: 14px 0; font-size: 54px; line-height: 1.05; }
.login-art p { max-width: 510px; color: #506473; line-height: 1.65; }
.login-art > small { color: var(--muted); }
.login-panel { display: grid; place-items: center; padding: 34px; }
.login-card { width: min(400px, 100%); }
.login-card h2 { margin-bottom: 7px; font-size: 30px; }
.login-card > p { margin-bottom: 28px; color: var(--muted); }
.demo-note { margin-top: 20px; padding: 14px; border-radius: 9px; background: var(--surface); color: var(--muted); font-size: 11px; }
.demo-note b, .demo-note span { display: block; margin: 2px; }

@media (max-width: 1050px) {
    .primary-nav { gap: 8px; margin-left: 10px; }
    .nav-link { padding-inline: 6px; }
    .profile-menu summary { min-width: 75px; }
    .profile-copy, .profile-menu .chevron, .help-link span:last-child { display: none; }
    .claim-guide { grid-template-columns: 1fr; }
    .guide-step + .guide-step { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 820px) {
    .app-header { height: 72px; }
    .nav-shell { padding: 0 18px; align-items: center; }
    .brand-logo { width: auto; }
    .brand-logo img { width: 110px; }
    .mobile-menu { display: grid; place-items: center; margin-left: auto; }
    .primary-nav { display: none; position: fixed; inset: 72px 0 auto; padding: 12px 18px 18px; background: white; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-menu); }
    .nav-open .primary-nav { display: grid; gap: 3px; }
    .nav-link { min-height: 46px; padding: 0 12px; border-radius: 8px; }
    .nav-link::after { display: none; }
    .nav-link.active { background: var(--ame-teal-soft); }
    .nav-group { display: block; }
    .nav-menu { position: static; display: grid; box-shadow: none; border: 0; padding: 0 0 5px 28px; }
    .header-tools { margin-left: 8px; gap: 0; }
    .help-link { display: none; }
    .profile-menu { border-left: 0; }
    .profile-menu summary { min-width: auto; padding-left: 8px; }
    .profile-popover { top: 58px; }
    .app-main { padding: 24px 18px 55px; }
    .dashboard-welcome { grid-template-columns: 1fr; padding: 28px; gap: 30px; }
    .period-panel { border-left: 0; border-top: 1px solid #cfe1e3; padding: 25px 0 0; grid-template-columns: 1fr 1fr; }
    .dashboard-grid, .form-layout { grid-template-columns: 1fr; }
    .form-layout > .submit-panel { position: static; }
    .role-grid { grid-template-columns: 1fr !important; }
    .section-head { align-items: stretch; flex-direction: column; gap: 14px; }
    .search-form { min-width: 0 !important; width: 100%; }
    .app-footer { padding-inline: 18px; }
}

@media (max-width: 560px) {
    .dashboard-welcome { padding: 24px 20px; }
    .dashboard-welcome h1 { font-size: 34px; }
    .period-panel { grid-template-columns: 1fr; }
    .guide-step { grid-template-columns: 30px 48px 1fr; padding: 22px 16px; }
    .step-icon { width: 46px; height: 46px; }
    .guide-tip { align-items: flex-start; padding: 13px 16px; flex-wrap: wrap; }
    .guide-tip a { margin-left: 26px; width: 100%; }
    .claim-highlight { grid-template-columns: 44px 1fr 18px; }
    .claim-highlight-amount { grid-column: 2; text-align: left; }
    .dashboard-help { align-items: flex-start; flex-wrap: wrap; }
    .dashboard-help a { margin-left: 27px; }
    .form-grid { grid-template-columns: 1fr; }
    .wide { grid-column: auto; }
    .page-heading { min-height: 74px; }
    .page-heading h1 { font-size: 25px; }
    .detail-head { display: block; }
    .meta { grid-template-columns: 1fr; margin-top: 24px; }
    .timeline { overflow-x: auto; }
    .timeline div { min-width: 115px; }
    .item-detail { align-items: flex-start; flex-direction: column; gap: 18px; }
    .item-detail-amount { min-width: 0; margin: 0; text-align: left !important; }
    .saved-attachment { min-width: 100%; max-width: 100%; }
    .file-preview-item { grid-template-columns: 46px minmax(0, 1fr); }
    .file-preview-visual { width: 46px; height: 46px; }
    .file-preview-actions { grid-column: 2; }
    .login-page { grid-template-columns: 1fr; }
    .login-art { min-height: 330px; padding: 34px 26px; }
    .login-art h1 { font-size: 37px; }
    .login-panel { padding: 36px 24px; }
    .app-footer { display: grid; gap: 4px; }
}
