.timesheet-module {
    --canvas: #f7f8fa;
    --ink: #0f1115;
    --muted: #687280;
    --line: #d3d4d8;
    --aqua: #c8ff00;
    --aqua-strong: #a8e600;
    --aqua-deep: #6c9700;
    --aqua-wash: #f1ffd1;
    --danger: #b74747;
}

.timesheet-module button, .timesheet-module input { font: inherit; }
.timesheet-module button { cursor: pointer; }
.timesheet-module button:focus-visible, .timesheet-module input:focus-visible { outline: 3px solid rgba(200, 255, 0, .65); outline-offset: 2px; }
.timesheet-module h1, .timesheet-module h2, .timesheet-module h3, .timesheet-module p { margin-top: 0; }
.timesheet-module h1, .timesheet-module h2, .timesheet-module h3, .timesheet-module .stat-value { font-family: Poppins, sans-serif; }
.button, .stat-card, .management-panel, .config-card, .table-shell, .loading-card, .empty-state { border-color: #0f1115; border-radius: 12px; }
.button-aqua { color: #0f1115; border-color: #0f1115; box-shadow: 3px 3px 0 #0f1115; }
.button-aqua:hover { background: #b5ec00; }
.stat-card-highlight { border-color: #0f1115; background: linear-gradient(115deg, #f1ffd1, #fff 83%); }
.stat-symbol, .config-icon, .count-pill, .avatar, .empty-mark { color: #0f1115; background-color: #f1ffd1; }

.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #778082; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.eyebrow-line { width: 19px; height: 2px; background: var(--aqua-strong); }
.dashboard-heading h1 { margin: 13px 0 7px; font-size: clamp(38px, 5vw, 54px); font-weight: 700; letter-spacing: -.065em; line-height: 1.05; }
.dashboard-heading h1 span { color: var(--aqua-strong); }
.heading-copy { margin: 0; color: #777f81; font-size: 14px; }
.heading-actions { display: flex; gap: 9px; padding-bottom: 3px; }
.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 700; text-decoration: none; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button-light { color: #303738; background: #fff; border-color: #e3e8e8; }
.button-light:hover { background: #f9fbfb; border-color: #cfd8d8; }
.button-dark { color: #fff; background: #151b1c; }
.button-dark:hover { background: #293233; }
.button-aqua { color: #082d30; background: var(--aqua); }
.button-aqua:hover { background: #50d8d1; }
.button-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.notice { display: flex; align-items: center; gap: 10px; margin: -12px 0 22px; padding: 12px 15px; border: 1px solid; border-radius: 9px; font-size: 12px; }
.notice-error { color: #8f3535; background: #fff7f6; border-color: #f0d2cf; }
.notice-success { color: #176b5d; background: #effbf7; border-color: #c7ebdf; }
.notice-symbol { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: currentColor; color: #fff; font-size: 12px; font-weight: 800; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 42px; }
.stat-card { position: relative; min-height: 137px; padding: 20px 22px 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.stat-card-highlight { border-color: #c7efec; background: linear-gradient(115deg, #e8fbf9, #f9fdfd 83%); }
.stat-label { display: flex; align-items: center; justify-content: space-between; color: #737c7e; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.stat-symbol { color: #0b8486; font-size: 19px; font-weight: 500; line-height: 1; }
.stat-symbol-muted { color: #bdc5c6; }
.stat-value { margin-top: 14px; font-size: 34px; font-weight: 700; letter-spacing: -.06em; line-height: 1; }
.stat-foot { margin-top: 7px; color: #899092; font-size: 11px; }

.management-panel { margin: -17px 0 43px; overflow: hidden; border: 1px solid #dce5e5; border-radius: 13px; background: #fff; box-shadow: 0 12px 35px rgba(17, 35, 36, .045); animation: panel-in .22s ease-out; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.management-heading { display: flex; align-items: center; justify-content: space-between; padding: 22px 25px; border-bottom: 1px solid var(--line); }
.management-heading h2, .records-heading h2 { margin: 8px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -.045em; }
.icon-close { width: 32px; height: 32px; border: 0; border-radius: 8px; background: #f3f6f6; color: #5a6364; font-size: 21px; line-height: 1; }
.icon-close:hover { background: var(--aqua-wash); color: var(--aqua-deep); }
.management-content { display: grid; grid-template-columns: minmax(300px, .92fr) 1.08fr; }
.phone-form { display: grid; gap: 12px; padding: 23px 25px 25px; border-right: 1px solid var(--line); }
.form-intro { margin-bottom: 2px; color: #727b7d; font-size: 12px; }
.phone-form label { display: grid; gap: 6px; color: #3d4546; font-size: 11px; font-weight: 700; }
.optional-label { margin-left: 5px; color: #9ca3a4; font-size: 8px; letter-spacing: .11em; }
.field { width: 100%; height: 40px; box-sizing: border-box; padding: 0 11px; border: 1px solid #e0e6e6; border-radius: 7px; background: #fbfcfc; color: var(--ink); font-size: 12px; font-weight: 500; transition: border-color .15s ease, box-shadow .15s ease; }
.field::placeholder { color: #a6adae; }
.field:focus { border-color: var(--aqua-strong); outline: none; box-shadow: 0 0 0 3px rgba(36, 201, 196, .12); }
.save-button { min-height: 42px; justify-content: space-between; margin-top: 4px; padding: 0 14px; }
.save-button span { font-size: 18px; }
.phone-list-wrap { padding: 24px 25px; }
.list-heading { display: flex; align-items: center; gap: 9px; color: #879091; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.count-pill { min-width: 21px; height: 21px; display: inline-grid; place-items: center; padding: 0 5px; border-radius: 20px; background: var(--aqua-wash); color: #087f82; font-size: 10px; letter-spacing: 0; }
.phone-list { margin-top: 10px; }
.phone-item { display: flex; align-items: center; gap: 11px; min-height: 60px; border-bottom: 1px solid #f0f2f2; }
.phone-item:last-child { border-bottom: 0; }
.avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: #e6f9f7; color: #087e80; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.phone-details { min-width: 0; display: grid; gap: 3px; flex: 1; }
.phone-details strong { overflow: hidden; color: #222a2b; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.phone-details small { color: #8b9495; font-size: 10px; }
.phone-status { padding: 5px 7px; border-radius: 5px; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.is-active { background: #e8f9f2; color: #168264; }
.is-inactive { background: #f1f2f2; color: #8a9090; }
.empty-phones { padding: 25px 0 5px; color: #929a9b; font-size: 12px; }

.records-section { margin-top: 4px; }
.records-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.records-tools { display: flex; align-items: center; gap: 13px; }
.column-toggle { height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid #e2e8e8; border-radius: 8px; background: #fff; color: #485253; font-size: 11px; font-weight: 700; white-space: nowrap; }
.column-toggle:hover, .column-toggle[aria-expanded="true"] { border-color: #bce9e6; background: #f0fbfa; color: var(--aqua-deep); }
.column-order-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: -4px 0 14px; padding: 14px 16px; border: 1px solid #dfe9e9; border-radius: 10px; background: #fff; animation: panel-in .18s ease-out; }
.column-order-panel > div { display: grid; gap: 4px; }
.column-order-panel > div strong { color: #263031; font-size: 11px; }
.column-order-panel > div > span { color: #90999a; font-size: 10px; }
.column-order-panel ol { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 0; padding: 0; list-style: none; }
.column-order-panel li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 5px 4px 9px; border: 1px solid #edf0f0; border-radius: 7px; color: #566061; font-size: 10px; }
.column-movers { display: inline-flex; gap: 2px; }
.column-movers button { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 5px; background: #f2f6f6; color: #3c7777; line-height: 1; }
.column-movers button:hover:not(:disabled) { background: var(--aqua-wash); }
.column-movers button:disabled { color: #c7cecf; cursor: default; }
.search-box { height: 38px; width: 220px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #e2e8e8; border-radius: 8px; background: #fff; }
.search-box:focus-within { border-color: var(--aqua-strong); box-shadow: 0 0 0 3px rgba(36, 201, 196, .1); }
.search-box svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: #9aa3a4; stroke-width: 1.6; stroke-linecap: round; }
.search-box input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.search-box input::placeholder { color: #a0a8a9; }
.clear-search { border: 0; background: transparent; color: #8a9394; font-size: 17px; }
.records-count { color: #8a9293; font-size: 10px; white-space: nowrap; }
.table-shell { overflow: hidden; border: 1px solid #e5eaea; border-radius: 11px; background: #fff; }
.table-scroll { overflow-x: auto; }
.records-table { width: 100%; min-width: 1060px; border-collapse: collapse; text-align: left; }
.records-table thead { background: #fafbfb; }
.records-table th { height: 43px; padding: 0 13px; border-bottom: 1px solid #e9eeee; color: #90999a; font-size: 8px; font-weight: 800; letter-spacing: .11em; white-space: nowrap; }
.sort-header { display: inline-flex; align-items: center; gap: 6px; padding: 7px 0; border: 0; background: transparent; color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; cursor: pointer; }
.sort-header:hover { color: var(--aqua-deep); }
.sort-indicator { color: #aeb8b9; font-size: 11px; letter-spacing: 0; }
.sort-header:hover .sort-indicator { color: var(--aqua-deep); }
.records-table td { max-width: 200px; height: 59px; padding: 9px 13px; border-bottom: 1px solid #f0f2f2; color: #424a4b; font-size: 10px; vertical-align: middle; }
.records-table tbody tr:last-child td { border-bottom: 0; }
.records-table tbody tr:hover { background: #fbfefe; }
.date-cell { color: #727b7c !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.person-cell { display: inline-flex; align-items: center; gap: 8px; color: #2c3435; font-weight: 700; white-space: nowrap; }
.avatar-small { width: 26px; height: 26px; border-radius: 8px; font-size: 8px; }
.message-cell, .interpretation-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-cell { max-width: 180px !important; color: #697273 !important; }
.interpretation-cell { max-width: 205px !important; color: #333b3c !important; }
.type-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 7px; border-radius: 5px; font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.type-badge > span { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.type-start { background: #e4f9f7; color: #087f82; }
.type-end { background: #eef0f0; color: #50595a; }
.status-text { display: inline-flex; align-items: center; gap: 6px; color: #7f8889; font-size: 8px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.status-text > span { width: 6px; height: 6px; border-radius: 50%; background: #b7c0c1; }
.status-ok { color: #26866d; }
.status-ok > span { background: #42c49d; }
.status-error { color: var(--danger); }
.status-error > span { background: #d66a65; }
.table-caption { display: flex; justify-content: space-between; padding: 11px 3px 0; color: #a0a8a9; font-size: 8px; font-weight: 750; letter-spacing: .12em; }
.loading-card, .empty-state { display: grid; justify-items: center; padding: 60px 20px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: #8a9293; font-size: 12px; text-align: center; }
.loading-card { display: flex; justify-content: center; align-items: center; gap: 10px; }
.loading-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua-strong); animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .35; transform: scale(.8); } }
.empty-mark { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 13px; background: var(--aqua-wash); color: var(--aqua-deep); font-size: 12px; font-weight: 900; }
.empty-state h3 { margin: 0 0 6px; color: #242b2c; font-size: 16px; letter-spacing: -.035em; }
.empty-state p { max-width: 390px; margin: 0; color: #929a9b; line-height: 1.6; }
.compact-empty { padding: 36px 20px; }

.phone-stats { margin-bottom: 28px; }
.format-example { margin-top: 14px; color: #202829; font-family: Manrope, 'DM Sans', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -.045em; }
.config-layout { display: grid; grid-template-columns: minmax(300px, .88fr) minmax(380px, 1.12fr); gap: 14px; align-items: stretch; }
.config-card { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.config-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.config-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--aqua-wash); color: #087f82; }
.config-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.config-card-heading h2, .registered-heading h2 { margin: 6px 0 0; font-size: 18px; font-weight: 700; letter-spacing: -.045em; }
.config-description { margin: 0 0 20px; color: #818a8b; font-size: 11px; line-height: 1.65; }
.config-card .phone-form { padding: 0; border: 0; }
.security-note { display: flex; align-items: center; gap: 7px; margin-top: 17px; color: #91999a; font-size: 9px; line-height: 1.5; }
.security-note span { color: #2bb79b; font-size: 8px; }
.registered-card { display: flex; flex-direction: column; }
.registered-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.count-pill-large { min-width: 27px; height: 27px; font-size: 11px; }
.registered-card .phone-list { margin-top: 4px; }
.registered-card .phone-item { min-height: 72px; }
.phone-actions { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.phone-action { padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; font-size: 9px; font-weight: 750; white-space: nowrap; }
.phone-action-remove { color: #a34f4b; }
.phone-action-remove:hover { background: #fff1ef; }
.phone-action-restore { color: #087f82; }
.phone-action-restore:hover { background: var(--aqua-wash); }
.phone-action-cancel { color: #7d8586; }
.phone-action-cancel:hover { background: #f1f3f3; }
.phone-status { display: inline-flex; align-items: center; gap: 6px; }
.phone-status span { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.phone-empty-state { display: grid; justify-items: center; align-content: center; flex: 1; min-height: 230px; text-align: center; }
.phone-empty-state .empty-mark { margin-bottom: 12px; }
.phone-empty-state strong { color: #303839; font-size: 12px; }
.phone-empty-state > span:last-child { max-width: 260px; margin-top: 5px; color: #969e9f; font-size: 10px; line-height: 1.5; }
.list-footnote { margin-top: auto; padding-top: 14px; border-top: 1px solid #f0f2f2; color: #a0a8a9; font-size: 9px; }

.blazor-error-boundary { padding: 18px; border-radius: 9px; background: #fff4f2; color: #8f3535; }
.blazor-error-boundary::after { content: "Ocorreu um erro inesperado."; }

@media (max-width: 900px) {
    .management-content { grid-template-columns: 1fr 1fr; }
    .phone-form, .phone-list-wrap { padding-right: 18px; padding-left: 18px; }
    .records-tools { gap: 8px; }
    .search-box { width: 190px; }
    .config-layout { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 650px) {
    .dashboard-heading { align-items: flex-start; flex-direction: column; margin-bottom: 26px; }
    .heading-actions { width: 100%; }
    .heading-actions .button { flex: 1; }
    .heading-copy { max-width: 360px; font-size: 13px; line-height: 1.55; }
    .stats-grid { gap: 8px; margin-bottom: 32px; }
    .stat-card { min-height: 108px; padding: 14px 12px; border-radius: 10px; }
    .stat-label { align-items: flex-start; min-height: 26px; font-size: 7px; letter-spacing: .08em; }
    .stat-symbol { font-size: 15px; }
    .stat-value { margin-top: 7px; font-size: 27px; }
    .stat-foot { font-size: 9px; }
    .management-panel { margin-top: -8px; }
    .config-layout { grid-template-columns: 1fr; }
    .config-card { padding: 19px; }
    .phone-stat-note { display: none; }
    .registered-card .phone-item { flex-wrap: wrap; padding: 10px 0; }
    .phone-actions { width: 100%; justify-content: flex-end; margin-top: -3px; }
    .management-heading { padding: 18px; }
    .management-content { grid-template-columns: 1fr; }
    .phone-form { padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
    .phone-list-wrap { padding: 19px 18px; }
    .records-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
    .records-tools { width: 100%; flex-wrap: wrap; }
    .search-box { width: auto; flex: 1; }
    .records-count { margin-left: auto; }
    .column-order-panel { align-items: flex-start; flex-direction: column; }
    .column-order-panel ol { justify-content: flex-start; }
    .table-caption { font-size: 7px; letter-spacing: .08em; }
    .empty-state { padding: 45px 20px; }
}
