@import url('./tokens.css');

main { padding: 24px 20px; }
.page-heading { margin-bottom: 23px; }
.page-heading .eyebrow { display: block; margin-bottom: 5px; }
.page-heading p { margin-top: 6px; color: var(--muted); font-size: 12px; }
.heading-row, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-heading { margin-bottom: 16px; }
.date-pill { width: fit-content; display: flex; align-items: center; gap: 5px; margin-top: 12px; color: var(--muted); font-size: 10px; background: white; border: 1px solid var(--border); border-radius: 8px; padding: 4px 9px; }
.date-pill svg { width: 14px; height: 14px; }
.cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 24px; }
.card { min-width: 0; padding: 17px; border: 1px solid var(--border); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.cards .card { position: relative; font-size: 11px; color: var(--muted); }
.cards .card > [data-icon] { color: var(--primary); width: 19px; height: 19px; display: block; margin-bottom: 12px; }
.cards .card > [data-icon] svg { width: 19px; height: 19px; display: block; }
.cards .card:nth-child(2) > [data-icon] { color: #D97706; }
.cards .card:nth-child(3) > [data-icon] { color: #059669; }
.cards .card:nth-child(4) > [data-icon] { color: #7C3AED; }
.cards .card strong { display: block; font-size: 23px; font-weight: 800; color: var(--text); line-height: 1.7; margin-top: 2px; letter-spacing: -.6px; }
.cards .card:first-child { background: var(--primary); border-color: var(--primary); color: #E0E7FF; }
.cards .card:first-child strong, .cards .card:first-child > [data-icon] { color: white; }
.cards .card:last-child:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.cards .card:last-child:nth-child(3) [data-icon] { display: none; }
.cards .card:last-child:nth-child(3) strong { grid-column: 2; grid-row: 1 / 3; font-size: 22px; }
.welcome-card { border-radius: 22px; padding: 22px; margin-bottom: 22px; color: white; background: linear-gradient(120deg,#4F46E5,#3730A3); position: relative; overflow: hidden; }
.welcome-card::after { content: ''; position: absolute; width: 170px; height: 170px; border: 28px solid #ffffff09; border-radius: 50%; left: -65px; top: -45px; pointer-events: none; }
.welcome-card p { font-size: 11px; color: #C7D2FE; }
.welcome-card h2 { margin: 7px 0 16px; font-size: 21px; color: white; }
.welcome-card .button { background: white; color: var(--primary-dark); min-height: 40px; padding: 8px 13px; font-size: 11px; }
.welcome-card .button svg { width: 16px; height: 16px; }
.section-label { display: flex; justify-content: space-between; align-items: center; margin: 23px 0 13px; }
.section-label small { color: var(--muted); font-size: 10px; }
.modules { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin-bottom: 24px; }
.module { padding: 17px; background: white; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.module-icon { display: grid; place-items: center; width: 40px; height: 40px; background: var(--tint); color: var(--primary); border-radius: 13px; margin-bottom: 12px; }
.module:nth-child(2n) .module-icon { background: #ECFDF5; color: #059669; }
.module:nth-child(3n) .module-icon { background: #FFF7ED; color: #D97706; }
.module b { display: block; font-size: 12px; margin-bottom: 4px; }
.module small { color: var(--muted); font-size: 10px; line-height: 1.8; display: block; }
.module:hover { border-color: #A5B4FC; }
.panel { margin-bottom: 21px; min-width: 0; }
.panel > h2, .panel > h3 { margin-bottom: 14px; }
.panel > p { font-size: 12px; color: var(--muted); margin: 12px 0; }
.panel > button { margin-bottom: 12px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0; }
.toolbar input { flex: 1 1 100%; }
.toolbar select { flex: 1; width: auto; }
.toolbar button { flex: 1; }
.tabs { display: flex; gap: 5px; padding: 5px; background: #EDEFF5; border-radius: 14px; margin-bottom: 22px; }
.tabs button, .tabs a { flex: 1; min-width: 0; padding: 10px 5px; background: transparent; color: var(--muted); font-size: 11px; border-radius: 10px; text-align: center; font-weight: 700; }
.tabs [aria-selected=true], .tabs a.active { background: white; color: var(--primary); box-shadow: 0 2px 6px #0f172a08; }
.scroll { max-width: 100%; }
table { width: 100%; border: 0; border-spacing: 0; display: block; }
thead { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }
tbody { display: grid; gap: 12px; }
tbody tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 15px; padding: 17px; border-radius: 18px; background: white; border: 1px solid var(--border); box-shadow: var(--shadow); }
td { min-width: 0; display: flex; flex-direction: column; font-size: 12px; font-weight: 600; border: 0; padding: 0; }
td::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 500; }
td:first-child { grid-column: 1 / -1; font-size: 14px; font-weight: 800; padding-bottom: 9px; border-bottom: 1px solid #F1F5F9; }
td:first-child::before { display: none; }
td:has(button) { grid-column: 1 / -1; margin-top: 4px; }
td:has(button)::before { display: none; }
td button { width: 100%; color: var(--primary); background: var(--tint); }
td button:hover { color: white; background: var(--primary); }
td[colspan] { grid-column: 1 / -1; text-align: center; border: 0; color: var(--muted); font-size: 12px; }
.low { color: #DC2626; }
.status { display: inline-flex; width: fit-content; padding: 2px 8px; border-radius: 6px; color: #047857; background: #ECFDF5; font-size: 11px; }
.empty-state { padding: 28px 20px; text-align: center; background: white; border: 1px dashed #CBD5E1; border-radius: 18px; color: var(--muted); font-size: 12px; }
.empty-state svg { display: block; margin: 0 auto 10px; color: #94A3B8; width: 28px; height: 28px; }
.notice { padding: 17px; border: 1px solid #FDE68A; border-radius: 17px; background: #FFFBEB; color: #92400E; font-size: 12px; }
.notice h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.local-note { display: flex; justify-content: center; gap: 6px; color: var(--muted); font-size: 10px; margin-top: 24px; text-align: center; }
.local-note svg { width: 14px; height: 14px; }
.more-list { display: grid; gap: 10px; }
.more-item { display: flex; gap: 13px; align-items: center; background: white; border: 1px solid var(--border); padding: 14px; border-radius: 17px; }
.more-item .module-icon { margin: 0; }
.more-item strong { font-size: 13px; display: block; }
.more-item small { color: var(--muted); font-size: 10px; }
.more-item > svg { margin-inline-start: auto; color: #94A3B8; width: 16px; }
.more-item:hover { border-color: #A5B4FC; }
.summary-banner { border: 1px solid #C7D2FE; border-radius: 18px; padding: 18px; background: var(--tint); color: var(--primary-dark); margin: 15px 0; font-size: 14px; font-weight: 700; }
.summary-banner h3 { font-size: 12px; }
.summary-banner strong { font-size: 26px; display: block; }
.product-admin { padding: 15px; border-radius: 18px; border: 1px solid var(--border); background: white; display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; margin-bottom: 12px; }
.product-admin img { width: 58px; height: 65px; border-radius: 10px; background: #EEF2FF; }
.product-admin h4 { font-size: 12px; }
.product-admin p { color: var(--muted); font-size: 10px; }
.product-admin .price { font-size: 12px; color: var(--primary); font-weight: 800; }
.product-admin .record-actions { grid-column: 1 / -1; display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.product-admin button { flex: 1; }
.product-admin .tag { color: var(--muted); font-size: 10px; }
.form-stack { display: grid; gap: 15px; }
.filter-row { display: flex; gap: 8px; margin: 12px 0; }
.filter-row > * { min-width: 0; flex: 1; }
