/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f9fbfd;
  --border: #e4e9f1;
  --text: #172033;
  --muted: #667085;
  --primary: #12355b;
  --primary-strong: #0b2545;
  --primary-soft: #e8f0fa;
  --teal: #0f766e;
  --teal-soft: #e7f7f3;
  --amber: #b7791f;
  --amber-soft: #fff7e6;
  --red: #b42318;
  --red-soft: #fef3f2;
  --green: #1f7a4d;
  --green-soft: #eef8f2;
  --green-border: #b7dfc6;
  --shadow: 0 14px 40px rgba(16, 24, 40, 0.08);
  --shadow-soft: 0 8px 24px rgba(16, 24, 40, 0.06);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(18, 53, 91, 0.10), transparent 34rem),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 34rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.phone-portrait-lock { display: none; }

@media (max-width: 767px) and (orientation: portrait) and (pointer: coarse) {
  html, body { min-height: 100%; overflow: hidden; }
  .app-ui { display: none; }
  .phone-portrait-lock {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
      radial-gradient(circle at top left, rgba(18, 53, 91, 0.12), transparent 26rem),
      linear-gradient(180deg, #fbfdff 0%, #eef3fb 100%);
    color: var(--text);
  }
  .phone-portrait-lock-card {
    width: min(100%, 420px);
    border: 1px solid rgba(207, 215, 230, 0.95);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.14);
    padding: 30px 26px;
    text-align: center;
  }
  .phone-portrait-lock-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 34px;
    font-weight: 900;
  }
  .phone-portrait-lock h1 {
    margin: 0 0 10px;
    color: var(--primary-strong);
    font-size: 28px;
    line-height: 1.12;
    letter-spacing: -0.035em;
  }
  .phone-portrait-lock p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
    font-weight: 650;
  }
}

.app-shell { min-height: 100vh; }
.topbar {
  border-bottom: 1px solid rgba(228, 233, 241, 0.82);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.user-tag { border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--primary); padding: 7px 11px; font-size: 12px; font-weight: 800; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout-button { min-height: 36px; padding: 8px 12px; }
.auth-loading-card { padding: 24px; color: var(--muted); }
.auth-redirect-placeholder { min-height: 40vh; }
.login-page { display: flex; justify-content: center; padding: 34px 0 56px; }
.login-card { width: min(100%, 480px); padding: 32px; box-shadow: var(--shadow); }
.login-card h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.045em; }
.login-card p { color: var(--muted); line-height: 1.6; }
.login-form { margin-top: 22px; }
.login-form .btn { width: 100%; min-height: 44px; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 760; letter-spacing: -0.02em; color: inherit; text-decoration: none; cursor: pointer; }
.brand:hover .brand-subtitle, .brand:focus-visible .brand-subtitle { color: var(--text); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #1f7a8c);
  color: white; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(18, 53, 91, 0.25);
}
.brand-subtitle { color: var(--muted); font-size: 13px; }
.container { max-width: 1440px; margin: 0 auto; padding: 34px 22px 56px; }
.app-footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 22px 28px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.hero, .card, .step-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.hero { padding: 36px; box-shadow: var(--shadow); }
.welcome-line { margin: 0 0 10px; color: var(--primary); font-size: 18px; font-weight: 820; letter-spacing: -0.02em; }
.hero h1, .page-title h1 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.045em; }
.hero p, .page-title p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 720px; }
.eyebrow { color: var(--teal); font-size: 13px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 10px; }
.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.report-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; color: var(--muted); font-size: 13px; }

.btn {
  border: 0; border-radius: 12px; padding: 10px 16px; font-weight: 740;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
  text-decoration: none;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 22px rgba(18,53,91,.18); }
.btn-primary:hover:not(:disabled) { background: var(--primary-strong); }
.btn-secondary { background: var(--primary-soft); color: var(--primary); }
.btn-ghost { background: #fff; color: var(--primary); border: 1px solid var(--border); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.disabled-link { opacity: 0.55; pointer-events: none; cursor: not-allowed; }
.helper-text { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.inline-field { display: inline-grid; gap: 6px; color: #344054; font-size: 13px; font-weight: 760; }

.hero .action-row { align-items: flex-end; }
.hero .inline-field input { width: 180px; }
.hero .btn { min-height: 40px; }

.badge { border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.badge-neutral { background: var(--primary-soft); color: var(--primary); }
.badge-success { background: var(--teal-soft); color: var(--teal); }
.badge-warning { background: var(--amber-soft); color: var(--amber); }
.badge-error { background: var(--red-soft); color: var(--red); }

.workflow { display: grid; gap: 18px; }
.step-card { padding: 22px; }
.step-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.step-title { display: flex; gap: 12px; align-items: center; }
.step-number { width: 34px; height: 34px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 820; }
.step-card h2 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.step-card p { color: var(--muted); line-height: 1.55; }

.file-control { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
input[type="file"], input:not([type]), input[type="text"], input[type="email"], input[type="date"], input[type="number"], select, textarea {
  border: 1px solid var(--border); border-radius: 11px; background: #fff; color: var(--text); padding: 9px 10px; min-height: 40px;
}
input[type="file"] { padding: 8px; max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(31, 122, 140, .16); border-color: #79b7c2; }
textarea { min-height: 100px; resize: vertical; }

.receipt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 18px; }
.receipt-card { border: 1px solid var(--border); background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 8px 18px rgba(16,24,40,.05); }
.receipt-thumb { width: 100%; height: 124px; border: 1px solid var(--border); border-radius: 12px; padding: 0; overflow: hidden; background: linear-gradient(180deg, #f8fafc, #eef4f8); cursor: pointer; }
.receipt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.receipt-fallback { height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--primary); gap: 6px; }
.receipt-icon { font-size: 34px; }
.receipt-name { margin-top: 10px; font-size: 13px; font-weight: 760; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt-status { margin-top: 6px; color: var(--muted); font-size: 12px; }
.receipt-remove { width: 100%; justify-content: center; margin-top: 10px; min-height: 34px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 940px; }
th { background: #f8fafc; color: #475467; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; text-align: left; }
th, td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
td { font-size: 14px; }
.cell-file { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-actions { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.table-actions .btn { min-height: 34px; padding: 8px 12px; }

.recent-reports { margin-top: 22px; padding: 24px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 24px; letter-spacing: -0.03em; }
.section-head p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.recent-report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.recent-report-card { border: 1px solid var(--border); border-radius: 16px; background: var(--surface-soft); padding: 16px; display: grid; gap: 14px; }
.active-reports-section { border-color: #d7e3f3; }
.completed-reports-section { margin-top: 18px; background: rgba(255,255,255,0.82); box-shadow: none; }
.completed-report-grid { opacity: .96; }
.completed-report-card { border-color: var(--green-border); background: linear-gradient(180deg, #f5fcf7, #eaf8ef); }
.completed-eyebrow, .completed-status-text { color: var(--green); }

.attention-reports-section { border-color: rgba(245, 158, 11, .34); background: linear-gradient(180deg, #fffaf0, #fff); }
.attention-eyebrow { color: var(--amber); }
.attention-report-card { border-color: rgba(245, 158, 11, .42); background: linear-gradient(180deg, #fff8e7, #fffdf7); box-shadow: 0 12px 30px rgba(245, 158, 11, .08); }
.report-card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.report-card-title-row h3 { flex: 1 1; }
.compact-manager-note { margin-top: 10px; padding: 10px; border-radius: 12px; background: rgba(245, 158, 11, .1); color: #78350f; font-size: 13px; line-height: 1.45; }
.report-card-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.report-card-actions .btn { flex: 1 1 auto; }
.recent-report-card h3 { margin: 0; font-size: 17px; letter-spacing: -0.02em; }
.muted-line { margin-top: 4px; color: var(--muted); font-size: 13px; }
.report-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 18px; margin: 0; align-items: start; }
.report-facts div { display: grid; gap: 4px; min-width: 0; }
.report-facts dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; }
.report-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 700; line-height: 1.35; }
.report-fact-wide { grid-column: 1 / -1; }
.report-status-cell { display: flex; align-items: center; min-width: 0; }
.report-status-cell .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

.exception-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.exception-item { border: 1px solid var(--border); background: var(--surface-soft); border-radius: 12px; padding: 12px; color: var(--muted); }
.message { margin-top: 20px; padding: 14px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); white-space: pre-wrap; border: 1px solid #d6e5f7; }
.error-message { background: var(--red-soft); color: var(--red); border: 1px solid #fecdca; }
.empty-state { border: 1px dashed #cbd5e1; border-radius: 16px; padding: 18px; color: var(--muted); background: #fbfdff; }

.email-send-panel { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); display: grid; gap: 14px; }
.email-send-panel h3 { margin: 0; font-size: 17px; letter-spacing: -0.02em; }
.email-form-grid { max-width: 640px; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(11, 37, 69, .72); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 1000; }
.modal-card { width: min(960px, 96vw); max-height: 92vh; background: white; border-radius: 20px; padding: 16px; box-shadow: 0 28px 80px rgba(0,0,0,.34); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.modal-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-img { width: 100%; max-height: 78vh; object-fit: contain; display: block; background: #f8fafc; border-radius: 12px; }
.preview-frame { width: 100%; height: 78vh; border: 1px solid var(--border); border-radius: 12px; }

.form-card { max-width: 620px; padding: 24px; }
.form-grid { display: grid; gap: 14px; }
.form-grid label { color: #344054; font-weight: 720; display: grid; gap: 7px; }
.form-grid input { width: 100%; }

@media (max-width: 760px) {
  .topbar-inner { padding: 14px 16px; }
  .brand-subtitle { display: none; }
  .topbar-actions { gap: 8px; }
  .user-tag { max-width: 130px; }
  .logout-button { width: auto; }
  .container { padding: 22px 14px 42px; }
  .hero { padding: 24px; }
  .page-title { display: block; }
  .step-card { padding: 18px; }
  .step-head { display: block; }
  .section-head { display: block; }
  .section-head .btn { margin-top: 12px; }
  .report-facts { grid-template-columns: 1fr; }
  .step-head .badge { margin-top: 12px; }
  .file-control { display: grid; align-items: stretch; }
  .btn { width: 100%; }
  .receipt-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .receipt-thumb { height: 104px; }
  .modal-backdrop { padding: 10px; }
  .preview-frame { height: 72vh; }
}
.status-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.locked-notice {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(22, 101, 52, 0.24);
  border-left: 4px solid #2f855a;
  border-radius: 12px;
  background: rgba(240, 253, 244, 0.72);
  color: #166534;
  font-size: 0.92rem;
}
.review-table-section { display: grid; gap: 16px; }
.review-table-wrap { overflow-x: hidden; }
.review-table { width: 100%; min-width: 0; table-layout: fixed; }
.review-table th, .review-table td { padding: 8px 6px; }
.review-table input, .review-table select { width: 100%; min-width: 0; min-height: 34px; padding: 7px 7px; border-radius: 9px; font-size: 13px; }
.other-description-field { display: grid; gap: 4px; color: var(--text); font-size: 11px; font-weight: 800; line-height: 1.2; }
.other-description-field span { color: var(--red); }
.review-table input.field-error { border-color: var(--red); background: var(--red-soft); box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.12); }
.review-table .cell-file { max-width: none; font-size: 12px; }
.review-table .col-file { width: 10%; }
.review-table .col-vendor { width: 12%; }
.review-table .col-category { width: 12%; }
.review-table .col-description { width: 15%; }
.review-table .col-date { width: 11%; }
.review-table .col-total { width: 10%; }
.review-table .col-reimbursement { width: 10%; }
.review-table .col-review { width: 10%; }
.review-table .col-actions { width: 10%; }
.money-input { width: 100%; display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--border); border-radius: 9px; background: #fff; padding: 0 6px; }
.money-input span { color: var(--muted); font-weight: 700; font-size: 13px; }
.money-input input { border: 0; flex: 1 1; width: 100%; padding-left: 0; }
.money-input input:focus { outline: none; box-shadow: none; }
.review-table .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 5px 7px; font-size: 11px; }
.review-table .table-actions { gap: 4px; flex-direction: column; align-items: stretch; }
.review-table .table-actions .btn { min-height: 28px; padding: 5px 7px; font-size: 12px; width: 100%; }
.expense-summary-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06); }
.summary-label { font-size: 14px; font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: 0.04em; }
.summary-help { margin-top: 4px; color: var(--muted); font-size: 13px; }
.summary-amount { font-size: 28px; font-weight: 900; color: var(--success); white-space: nowrap; }
@media (max-width: 1100px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .step-card { padding: 16px; }
  .review-table .col-file { width: 9%; }
  .review-table .col-description { width: 13%; }
  .review-table .col-date { width: 11%; }
  .review-table .col-review { width: 10%; }
  .review-table .col-actions { width: 10%; }
  .review-table th, .review-table td { padding: 6px 4px; }
  .review-table input, .review-table select { font-size: 12px; padding: 6px 5px; }
  .review-table .badge { font-size: 10px; padding: 4px 5px; }
  .review-table .table-actions .btn { font-size: 11px; padding: 4px 5px; }
}



.admin-page { display: grid; gap: 22px; }
.admin-hero { margin-bottom: 0; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.admin-stat-card { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 16px; box-shadow: 0 12px 30px rgba(15, 23, 42, .05); display: grid; gap: 8px; }
.admin-stat-card span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.admin-stat-card strong { font-size: 26px; letter-spacing: -0.04em; color: var(--ink); }
.admin-section { padding: 24px; }
.admin-denied-card { padding: 28px; }
.admin-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 0; }
.admin-settings-grid div { border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); padding: 14px; min-width: 0; }
.admin-settings-grid dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; margin-bottom: 6px; }
.admin-settings-grid dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.table-wrap { width: 100%; overflow-x: auto; }
.admin-action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-action-row .btn { padding: 8px 10px; min-height: 34px; }
.topbar-actions a.btn { text-decoration: none; }


.admin-console { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.admin-sidebar { position: sticky; top: 92px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: 0 18px 45px rgba(15, 23, 42, .07); padding: 18px; }
.admin-sidebar-title { padding: 4px 4px 16px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.admin-sidebar-title h1 { margin: 4px 0 0; font-size: 24px; letter-spacing: -0.05em; }
.admin-sidebar-nav { display: grid; gap: 8px; }
.admin-sidebar-link { width: 100%; border: 1px solid transparent; background: transparent; border-radius: 14px; padding: 12px; text-align: left; cursor: pointer; display: grid; gap: 3px; color: var(--ink); text-decoration: none; font: inherit; }
.admin-sidebar-link span { font-weight: 900; }
.admin-sidebar-link small { color: var(--muted); font-weight: 700; }
.admin-sidebar-link:hover { background: var(--surface-soft); }
.admin-sidebar-link.active { border-color: rgba(37, 99, 235, .24); background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(16, 185, 129, .09)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.admin-content { min-width: 0; display: grid; gap: 18px; }
.admin-content-head { border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: 0 18px 45px rgba(15, 23, 42, .06); padding: 22px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.admin-content-head h1 { margin: 4px 0 6px; font-size: clamp(30px, 5vw, 48px); letter-spacing: -0.07em; }
.admin-content-head p { margin: 0; color: var(--muted); }
.admin-panel { display: grid; gap: 18px; }
.overview-stat-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.admin-tools-head { align-items: flex-start; gap: 16px; }
.admin-table-tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.admin-search-input, .admin-filter-select { border: 1px solid var(--border); border-radius: 12px; background: white; padding: 10px 12px; min-height: 42px; font: inherit; color: var(--ink); }
.admin-search-input { min-width: 230px; }
.admin-filter-select { min-width: 170px; }
.admin-show-more-row { display: flex; justify-content: center; padding-top: 14px; }
.sent-badge { background: rgba(16, 185, 129, .12); color: #047857; border: 1px solid rgba(16, 185, 129, .22); white-space: nowrap; }

.admin-user-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: end; margin: 0 0 18px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-soft); }
.admin-user-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.admin-user-form input, .admin-user-form select, .admin-inline-select { border: 1px solid var(--border); border-radius: 12px; background: white; padding: 10px 12px; min-height: 42px; font: inherit; color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 700; }
.admin-user-form .btn { min-height: 42px; }
.admin-inline-select { min-width: 130px; padding: 8px 10px; min-height: 36px; }
.success-message { border-color: rgba(16, 185, 129, .22); background: rgba(16, 185, 129, .10); color: #047857; white-space: pre-wrap; }
.users-placeholder-panel { min-height: 240px; display: grid; align-content: center; justify-items: start; }
.users-placeholder-panel h2 { margin: 6px 0; font-size: 30px; letter-spacing: -0.05em; }
.users-placeholder-panel p { margin: 0; color: var(--muted); max-width: 560px; }
@media (max-width: 900px) {
  .admin-console { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .admin-sidebar-nav { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .admin-content-head { flex-direction: column; }
  .admin-table-tools { width: 100%; justify-content: stretch; }
  .admin-search-input, .admin-filter-select { width: 100%; }
}

.admin-password-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.admin-password-row input {
  flex: 1 1;
}

.admin-temp-password-card {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.admin-temp-password-card div {
  display: grid;
  gap: 0.35rem;
}

.admin-temp-password-card code {
  width: fit-content;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 0.9rem;
}

.admin-password-field { min-width: 0; }
.admin-user-form .admin-password-field { grid-column: span 2; }
.admin-password-row .btn { white-space: nowrap; }
@media (max-width: 700px) { .admin-user-form .admin-password-field { grid-column: span 1; } .admin-password-row { flex-wrap: wrap; } }

.manager-note { margin-top: 10px; padding: 12px; border-left: 4px solid var(--amber); background: var(--amber-soft); border-radius: 10px; }

.manager-review-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 420px)); align-items: start; }
.manager-review-card { align-content: start; }
.manager-review-card .report-card-actions .btn { width: 100%; justify-content: center; }
@media (max-width: 560px) { .manager-review-grid { grid-template-columns: 1fr; } .report-facts { grid-template-columns: 1fr; } .report-fact-wide { grid-column: auto; } }

.employee-signature-input {
  flex: 1 1 320px;
  max-width: 520px;
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 720;
}
.employee-signature-input input { width: 100%; }
.employee-signature-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(16,24,40,.05);
}
.compact-signature-card { margin: 10px 0 12px; background: rgba(255,255,255,.78); }
.signature-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 900;
  margin-bottom: 8px;
}
.signature-line {
  min-height: 42px;
  border-bottom: 1px solid var(--primary);
  display: flex;
  align-items: flex-end;
  padding: 0 4px 6px;
}
.employee-signature-text {
  font-family: "Rage Italic", "Brush Script MT", "Segoe Script", cursive;
  font-size: 28px;
  line-height: 1.05;
  color: var(--primary);
  overflow-wrap: anywhere;
}

.manager-review-panel { display: grid; gap: 16px; align-items: start; justify-items: stretch; width: 100%; max-width: 980px; margin-right: auto; }
.manager-review-copy { max-width: 760px; }
.manager-review-copy h3 { margin: 0 0 6px; }
.manager-note-field { display: grid; gap: 8px; width: 100%; max-width: 940px; }
.manager-note-field textarea { width: 100%; min-height: 150px; resize: vertical; }
.manager-review-actions { justify-content: flex-start; }
@media (max-width: 760px) { .manager-review-panel, .manager-note-field { max-width: none; } .manager-review-actions .btn { flex: 1 1 100%; } }


.app-shell-skeleton { animation: shellFadeIn .12s ease-out; }
.skeleton-sidebar, .skeleton-panel { overflow: hidden; position: relative; }
.skeleton-line, .skeleton-nav-item, .skeleton-panel {
  background: linear-gradient(90deg, #eef3f8 0%, #f8fbfd 42%, #eef3f8 84%);
  background-size: 220% 100%;
  animation: skeletonPulse 1.25s ease-in-out infinite;
}
.skeleton-eyebrow { width: 96px; height: 12px; border-radius: 999px; margin-bottom: 10px; }
.skeleton-title { width: 142px; height: 28px; border-radius: 10px; }
.skeleton-nav-item { height: 54px; border-radius: 14px; }
.skeleton-content { min-height: 460px; }
.skeleton-hero { min-height: 220px; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.skeleton-card { min-height: 210px; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
@keyframes skeletonPulse {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
@keyframes shellFadeIn {
  from { opacity: .88; }
  to { opacity: 1; }
}

.settings-page { display: grid; gap: 22px; }
.settings-card { max-width: 720px; padding: 24px; }
.settings-form { max-width: 560px; }


.report-artifact-card { border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 14px; display: grid; gap: 12px; }
.report-artifact-preview { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; color: inherit; text-decoration: none; }
.report-artifact-preview h3, .report-artifact-preview h4 { margin: 0 0 5px; letter-spacing: -0.02em; }
.report-artifact-preview p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.document-thumb { position: relative; min-height: 88px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(180deg, #fff 0%, #f4f7fb 100%); box-shadow: var(--shadow-soft); padding: 12px 10px; display: grid; gap: 6px; align-content: start; overflow: hidden; }
.document-fold { position: absolute; right: 0; top: 0; width: 22px; height: 22px; background: linear-gradient(135deg, #dce5f4 0 50%, #fff 51%); border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.document-line { height: 5px; width: 70%; border-radius: 999px; background: #c9d6ea; }
.document-line-wide { width: 88%; }
.document-grid-lines { height: 24px; border: 1px solid #d8e0ee; border-radius: 6px; background: repeating-linear-gradient(0deg, transparent, transparent 7px, #d8e0ee 8px), repeating-linear-gradient(90deg, transparent, transparent 17px, #d8e0ee 18px); }
.document-thumb span { position: absolute; left: 10px; bottom: 8px; color: var(--success); font-size: 11px; font-weight: 900; letter-spacing: .05em; }
.artifact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.manager-detail-artifact { margin-bottom: 14px; background: var(--surface-soft); }
@media (max-width: 640px) { .report-artifact-preview { grid-template-columns: 1fr; } .document-thumb { width: 72px; } }

