* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f6f8;
    color: #20242a;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 245px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 24px 18px;
}

.logo-wrap img {
    width: 185px;
    margin-bottom: 34px;
}

.sidebar nav a,
.sidebar-bottom a {
    display: block;
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: #D7263D;
    color: white;
}

.sidebar-bottom {
    position: absolute;
    bottom: 22px;
    left: 18px;
    right: 18px;
}

.sidebar-bottom small {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    margin-top: 18px;
}

.app {
    margin-left: 245px;
    width: calc(100% - 245px);
    min-height: 100vh;
    overflow-x: hidden;
}

.topbar {
    height: 82px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 28px;
}

.topbar h1 {
    margin: 0;
    font-size: 24px;
    min-width: 280px;
}

.search {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.search input {
    width: 360px;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.panel {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    min-width: 0;
}

.panel h2 {
    margin: 0 0 18px;
    color: #D7263D;
    font-size: 18px;
    text-transform: uppercase;
}

.muted {
    color: #6b7280;
}

.dashboard {
    display: grid;
    grid-template-columns: 320px minmax(480px, 1fr) 370px;
    gap: 18px;
    padding: 22px;
    max-width: 100%;
    overflow-x: hidden;
}

.news {
    padding: 16px 0;
    border-bottom: 1px solid #edf0f2;
}

.news:last-child {
    border-bottom: none;
}

.news strong {
    display: block;
}

.news span {
    float: right;
    color: #6b7280;
    font-size: 13px;
}

.news p {
    margin: 6px 0 0;
    color: #4b5563;
}

.quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quick-grid button {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    padding: 14px 10px;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
}

.quick-grid button:hover {
    border-color: #D7263D;
    color: #D7263D;
}

.doc {
    padding: 12px 0;
    border-bottom: 1px solid #edf0f2;
    font-weight: 600;
}

.doc small {
    color: #6b7280;
    font-weight: normal;
}

.calendar-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.calendar-head h3 {
    flex: 1;
    text-align: center;
    color: #D7263D;
    font-size: 24px;
    margin: 0;
}

.calendar-head button {
    padding: 10px 14px;
    border-radius: 9px;
    border: 1px solid #d1d5db;
    background: white;
    cursor: pointer;
}

.calendar-head .active-btn {
    background: #D7263D;
    color: white;
    border-color: #D7263D;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.calendar > div {
    min-height: 72px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px;
    text-align: center;
    position: relative;
}

.calendar > div:nth-child(7n) {
    border-right: none;
}

.calendar > div:nth-last-child(-n+7) {
    border-bottom: none;
}

.calendar > div:nth-child(-n+7) {
    min-height: 38px;
    background: #fafafa;
    font-weight: bold;
}

.day strong {
    display: block;
}

.day.selected {
    background: #fff7e6;
}

.day.selected strong {
    background: #D7263D;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dot {
    width: 8px;
    height: 8px;
    background: #16a34a;
    border-radius: 50%;
    display: block;
    margin: 8px auto 0;
}

.event {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #edf0f2;
}

.event:last-child {
    border-bottom: none;
}

.event p {
    margin: 5px 0 0;
    color: #6b7280;
}

.chat-msg {
    padding: 14px 0;
    border-bottom: 1px solid #edf0f2;
}

.chat-msg p {
    margin: 6px 0 0;
    color: #4b5563;
}

.chat-input {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.chat-input input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
}

.chat-input button {
    width: 44px;
    border-radius: 50%;
    border: none;
    background: #D7263D;
    color: white;
    cursor: pointer;
}

.upcoming {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.upcoming b {
    background: #dcfce7;
    color: #15803d;
    border-radius: 12px;
    text-align: center;
    padding: 10px 0;
    line-height: 1.2;
}

.upcoming.red b {
    background: #fee2e2;
    color: #D7263D;
}

.upcoming.blue b {
    background: #dbeafe;
    color: #1d4ed8;
}

.upcoming p {
    margin: 0;
    color: #4b5563;
}

.module-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 22px;
    padding: 22px;
    align-items: start;
    max-width: 100%;
    overflow-x: hidden;
}

.module-main {
    min-width: 0;
}

.module-side {
    width: 370px;
    min-width: 0;
}

.module-title {
    margin-bottom: 18px;
}

.module-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.mini-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.mini-card strong {
    display: block;
    font-size: 28px;
    color: #D7263D;
    margin-bottom: 6px;
}

.mini-card span {
    color: #6b7280;
    font-weight: 600;
}

.mini-card.green strong {
    color: #15803d;
}

.mini-card.orange strong {
    color: #c2410c;
}

.mini-card.red strong {
    color: #D7263D;
}

.side-action {
    padding: 13px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
}

.side-action:hover {
    border-color: #D7263D;
    color: #D7263D;
    background: #fff5f5;
}

.stat-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f2;
}

.stat-line:last-child {
    border-bottom: none;
}

.stat-line span {
    color: #4b5563;
}

.stat-line strong {
    color: #D7263D;
    font-size: 22px;
}

.modern-form {
    background: white;
    border-radius: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.embedded-form {
    padding: 34px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label,
.side-calc label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea,
.side-calc input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 13px;
    padding: 16px;
    font-size: 15px;
    background: #fff;
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
}

.file-box {
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 18px;
    background: #f9fafb;
}

.file-box small {
    display: block;
    margin-top: 8px;
    color: #6b7280;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
}

.submit-btn,
.secondary-btn {
    border: none;
    border-radius: 13px;
    padding: 15px 26px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
}

.submit-btn {
    background: #D7263D;
    color: white;
}

.submit-btn:hover {
    background: #D7263D;
}

.secondary-btn {
    background: #f3f4f6;
    color: #374151;
}

.alert {
    padding: 16px 18px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 600;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.ticket-row,
.workday-row {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f2;
}

.ticket-row:last-child,
.workday-row:last-child {
    border-bottom: none;
}

.status {
    font-style: normal;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status.new {
    background: #fee2e2;
    color: #D7263D;
}

.status.progress {
    background: #ffedd5;
    color: #c2410c;
}

.status.done {
    background: #dcfce7;
    color: #15803d;
}

/* ATTENDANCE */

.attendance-day-card {
    padding: 26px;
}

.attendance-day-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 18px;
}

.attendance-day-head h2 {
    margin-bottom: 6px;
}

.attendance-day-head p {
    margin: 0;
    color: #6b7280;
    text-transform: capitalize;
    font-size: 18px;
}

.live-clock,
.big-clock {
    text-align: right;
}

.live-clock strong,
.big-clock strong {
    display: block;
    font-size: 58px;
    color: #D7263D;
    line-height: 1;
    letter-spacing: -1px;
}

.live-clock span,
.big-clock span {
    color: #6b7280;
    font-weight: 600;
}

.today-summary-line {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 14px 0 20px;
    color: #374151;
    border-bottom: 1px solid #edf0f2;
}

.today-summary-line span {
    font-size: 15px;
}

.attendance-entry-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: end;
    padding-top: 20px;
}

.attendance-log-table {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}

.attendance-log-table > div {
    display: grid;
    grid-template-columns: 130px 1fr 220px;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid #edf0f2;
    align-items: center;
}

.attendance-log-table > div:last-child {
    border-bottom: none;
}

.attendance-log-table .log-head {
    background: #f9fafb;
    font-weight: 700;
    color: #6b7280;
}

.attendance-log-table strong {
    color: #D7263D;
    font-size: 20px;
}

.attendance-log-table em {
    color: #6b7280;
    font-style: normal;
}

.week-table {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow-x: auto;
}

.week-table > div {
    display: grid;
    grid-template-columns: 120px 150px 140px 150px 170px 120px 1fr;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #edf0f2;
    align-items: center;
    min-width: 1050px;
}

.week-table > div:last-child {
    border-bottom: none;
}

.week-head {
    background: #f9fafb;
    font-weight: 700;
    color: #6b7280;
}

.week-table strong {
    color: #D7263D;
}

.side-calc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: end;
}

.side-calc label {
    font-size: 13px;
    margin-bottom: 6px;
}

.side-calc input {
    padding: 11px;
    font-size: 15px;
}

.calc-summary {
    background: #fff7e6;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 16px;
    margin-top: 16px;
}

.calc-summary span {
    display: block;
    color: #6b7280;
    font-weight: 700;
    margin-top: 10px;
}

.calc-summary span:first-child {
    margin-top: 0;
}

.calc-summary strong {
    display: block;
    color: #111827;
    font-size: 20px;
    margin-top: 4px;
}

.calc-summary .total-result {
    color: #D7263D;
    font-size: 25px;
}

.mini-att-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.mini-att-calendar div,
.mini-att-calendar span {
    min-height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: #f3f4f6;
}

.mini-att-calendar div {
    background: transparent;
    color: #6b7280;
    font-size: 12px;
}

.mini-att-calendar .ok {
    background: #dcfce7;
    color: #15803d;
}

.mini-att-calendar .ho {
    background: #dbeafe;
    color: #1d4ed8;
}

.mini-att-calendar .doctor {
    background: #fef3c7;
    color: #92400e;
}

.mini-att-calendar .vac {
    background: #ede9fe;
    color: #6d28d9;
}

.mini-att-calendar .missing {
    background: #fee2e2;
    color: #D7263D;
}

.mini-att-calendar .today {
    background: #D7263D;
    color: white;
}

.floating-chat {
    position: fixed;
    right: 26px;
    bottom: 26px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: #D7263D;
    color: white;
    font-size: 26px;
    box-shadow: 0 10px 25px rgba(215,38,61,0.35);
    cursor: pointer;
}

@media (max-width: 1300px) {
    .dashboard {
        grid-template-columns: 300px 1fr;
    }

    .right-column {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
}

@media (max-width: 1180px) {
    .module-layout {
        grid-template-columns: 1fr;
    }

    .module-side {
        width: 100%;
    }

    .module-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .side-calc {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    .sidebar-bottom {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 20px;
    }

    .app {
        width: 100%;
        margin-left: 0;
    }

    .topbar {
        height: auto;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }

    .topbar h1 {
        min-width: auto;
    }

    .search input {
        width: 100%;
    }

    .dashboard {
        grid-template-columns: 1fr;
    }

    .right-column {
        display: block;
    }

    .form-grid,
    .module-cards,
    .side-calc {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .submit-btn,
    .secondary-btn {
        width: 100%;
        text-align: center;
    }

    .ticket-row,
    .workday-row,
    .attendance-log-table > div {
        grid-template-columns: 1fr;
    }

    .attendance-entry-box {
        grid-template-columns: 1fr;
    }

    .attendance-day-head {
        flex-direction: column;
    }

    .live-clock,
    .big-clock {
        text-align: left;
    }

    .live-clock strong,
    .big-clock strong {
        font-size: 42px;
    }
}
.work-calendar-panel {
    padding: 22px;
}

.work-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    min-height: 720px;
}

.cal-head {
    background: #f9fafb;
    color: #6b7280;
    font-weight: 800;
    text-align: center;
    padding: 12px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.cal-head:nth-child(7) {
    border-right: none;
}

.work-day {
    min-height: 132px;
    padding: 10px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    overflow: hidden;
}

.work-day:nth-child(7n) {
    border-right: none;
}

.work-day strong {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    color: #374151;
    margin-bottom: 8px;
}

.work-day.selected {
    background: #fff7e6;
}

.work-day.selected strong {
    background: #D7263D;
    color: white;
}

.cal-event {
    display: block;
    margin-top: 6px;
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: normal;
    line-height: 1.25;
}

.cal-event.mine {
    background: #dbeafe;
    color: #1d4ed8;
}

.cal-event.shared {
    background: #fee2e2;
    color: #D7263D;
}

.cal-event.event {
    background: #dcfce7;
    color: #15803d;
}

.cal-event.ddh {
    background: #fef3c7;
    color: #92400e;
}

.cal-event.deadline {
    background: #ede9fe;
    color: #6d28d9;
}
.work-calendar-panel {
    padding: 22px;
}

.work-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    min-height: 680px;
}

.cal-head {
    background: #f9fafb;
    color: #6b7280;
    font-weight: 800;
    text-align: center;
    padding: 12px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.cal-head:nth-child(7) {
    border-right: none;
}

.work-day {
    min-height: 125px;
    padding: 10px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    overflow: hidden;
}

.work-day:nth-child(7n) {
    border-right: none;
}

.work-day strong {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    color: #374151;
    margin-bottom: 8px;
}

.work-day.selected {
    background: #fff7e6;
}

.work-day.selected strong {
    background: #D7263D;
    color: white;
}

.cal-event {
    display: block;
    margin-top: 6px;
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: normal;
    line-height: 1.25;
}

.cal-event.mine {
    background: #dbeafe;
    color: #1d4ed8;
}

.cal-event.shared {
    background: #fee2e2;
    color: #D7263D;
}

.cal-event.event {
    background: #dcfce7;
    color: #15803d;
}

.cal-event.ddh {
    background: #fef3c7;
    color: #92400e;
}

.cal-event.deadline {
    background: #ede9fe;
    color: #6d28d9;
}

.legend-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    color: #374151;
    font-weight: 600;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    display: inline-block;
}

.legend-dot.mine {
    background: #3b82f6;
}

.legend-dot.shared {
    background: #ef4444;
}

.legend-dot.event {
    background: #22c55e;
}

.legend-dot.ddh {
    background: #f59e0b;
}

.legend-dot.deadline {
    background: #8b5cf6;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.detail-grid div {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
}

.detail-grid span {
    display: block;
    color: #6b7280;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
}

.detail-grid strong {
    display: block;
    color: #111827;
}

.detail-description {
    margin-top: 22px;
    border-top: 1px solid #edf0f2;
    padding-top: 18px;
}

.detail-description h3 {
    margin: 0 0 8px;
    color: #D7263D;
}

.detail-description p {
    line-height: 1.6;
    color: #374151;
}

.workflow {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.workflow div {
    background: #f3f4f6;
    border-radius: 14px;
    padding: 16px 10px;
    text-align: center;
    color: #6b7280;
    font-weight: 700;
}

.workflow div.active {
    background: #dcfce7;
    color: #15803d;
}

.workflow strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.workflow span {
    display: block;
    font-size: 13px;
}

.note-box {
    border-bottom: 1px solid #edf0f2;
    padding: 14px 0;
}

.note-box:last-child {
    border-bottom: none;
}

.note-box strong {
    color: #D7263D;
}

.note-box p {
    margin: 8px 0 0;
    color: #374151;
    line-height: 1.5;
}

.full-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.danger-btn {
    display: block;
    width: 100%;
    text-align: center;
    border: none;
    border-radius: 13px;
    padding: 15px 26px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    background: #fee2e2;
    color: #D7263D;
}

.danger-btn:hover {
    background: #fecaca;
}

@media (max-width: 1180px) {
    .detail-grid {
        grid-template-columns: 1fr 1fr;
    }

    .workflow {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}
.ticket-link {
    color: inherit;
    text-decoration: none;
    border-radius: 12px;
    padding-left: 10px;
    padding-right: 10px;
}

.ticket-link:hover {
    background: #fff5f5;
}
.approve-btn {
    background: #16a34a !important;
    color: white !important;
}

.approve-btn:hover {
    background: #15803d !important;
}

.reject-btn {
    background: #dc2626 !important;
    color: white !important;
}
/* REQUEST DETAIL - cleaner layout */

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.detail-grid div {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
}

.detail-grid span {
    display: block;
    color: #6b7280;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
}

.detail-grid strong {
    display: block;
    color: #111827;
    font-size: 16px;
}

.detail-description {
    margin-top: 26px;
    padding: 22px;
    background: #fff7e6;
    border: 1px solid #fed7aa;
    border-radius: 16px;
}

.detail-description h3 {
    margin: 0 0 10px;
    color: #D7263D;
}

.detail-description p {
    line-height: 1.7;
    color: #374151;
    margin: 0;
}

.workflow {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 12px;
}

.workflow div {
    background: #f3f4f6;
    border-radius: 16px;
    padding: 18px 12px;
    text-align: center;
    color: #6b7280;
    font-weight: 700;
}

.workflow div.active {
    background: #dcfce7;
    color: #15803d;
}

.workflow strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.workflow span {
    display: block;
    font-size: 13px;
    line-height: 1.3;
}

.note-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 14px;
}

.note-box strong {
    color: #D7263D;
}

.note-box p {
    margin: 8px 0 0;
    color: #374151;
    line-height: 1.5;
}

.action-panel textarea {
    min-height: 120px;
}

.decision-buttons {
    display: grid;
    gap: 12px;
}

.decision-btn {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 16px 18px;
    text-align: left;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    display: block;
}

.decision-btn small {
    display: block;
    margin-top: 5px;
    font-weight: 600;
    opacity: .85;
}

.decision-btn.approve {
    background: #16a34a !important;
    color: white !important;
}

.decision-btn.approve:hover {
    background: #15803d !important;
}

.decision-btn.return {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

.decision-btn.return:hover {
    background: #e5e7eb !important;
}

.decision-btn.reject {
    background: #dc2626 !important;
    color: white !important;
}

.decision-btn.reject:hover {
    background: #b91c1c !important;
}

@media (max-width: 1180px) {
    .detail-grid,
    .workflow {
        grid-template-columns: 1fr;
    }
}

.reject-btn:hover {
    background: #b91c1c !important;
}
.user small {
    color: #6b7280;
    font-size: 12px;
}

.logout-link {
    color: #D7263D;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    margin-left: 8px;
}

.logout-link:hover {
    text-decoration: underline;
}
.approval-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 12px;
    background: #fff;
}

.approval-card:hover {
    background: #fff5f5;
    border-color: #D7263D;
}

.approval-main strong {
    color: #D7263D;
    font-size: 13px;
}

.approval-main h3 {
    margin: 6px 0;
    color: #111827;
}

.approval-main p {
    margin: 0;
    color: #6b7280;
}
.full-btn {
    width: 100%;
    text-align: center;
}
.alert.warning {
    background: #fff7e6;
    color: #92400e;
    border: 1px solid #fed7aa;
}

.inline-alert-link {
    display: inline-block;
    margin-left: 10px;
    color: #D7263D;
    font-weight: 800;
    text-decoration: none;
}

.inline-alert-link:hover {
    text-decoration: underline;
}

.task-panel {
    border: 2px solid #fed7aa;
}

.urgent-task {
    border-color: #fed7aa;
    background: #fffaf0;
}

.urgent-task:hover {
    background: #fff7e6;
}
.checkbox-group {
    display: grid;
    gap: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 700;
    color: #374151;
    margin: 0;
}

.checkbox-group input {
    width: auto;
    margin-top: 2px;
}

.poll-card {
    border-color: #e5e7eb;
}

.poll-side-link {
    display: block;
    color: #374151;
    text-decoration: none;
}

.poll-side-link small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-weight: 600;
}
.compact-alerts {
    padding-bottom: 12px;
}

.compact-news {
    padding: 8px 0;
}

.dashboard-calendar-panel {
    padding: 22px;
}

.dashboard-work-calendar {
    min-height: 720px;
}

.dashboard-work-calendar .work-day {
    min-height: 132px;
}

.dashboard-work-calendar .cal-event {
    text-decoration: none;
}

.dashboard-work-calendar .cal-event:hover {
    filter: brightness(0.96);
}

.calendar-note {
    margin: 14px 0 0;
}
.dashboard-main-layout {
    grid-template-columns: minmax(0, 1fr) 370px;
}

.dashboard-main-column {
    min-width: 0;
}

.compact-alerts {
    padding-bottom: 12px;
}

.compact-news {
    padding: 8px 0;
}

.dashboard-calendar-panel {
    padding: 22px;
}

.dashboard-work-calendar {
    min-height: 720px;
}

.dashboard-work-calendar .work-day {
    min-height: 132px;
}

.dashboard-work-calendar .cal-event {
    text-decoration: none;
}

.dashboard-work-calendar .cal-event:hover {
    filter: brightness(0.96);
}

.calendar-note {
    margin: 14px 0 0;
}

@media (max-width: 1300px) {
    .dashboard-main-layout {
        grid-template-columns: 1fr;
    }
}
.rich-editor {
    min-height: 150px;
    border: 1px solid #d1d5db;
    border-radius: 13px;
    padding: 16px;
    background: #fff;
    font-size: 15px;
    line-height: 1.55;
    outline: none;
}

.rich-editor:focus {
    border-color: #D7263D;
    box-shadow: 0 0 0 3px rgba(215,38,61,.12);
}

.budget-editor {
    min-height: 130px;
}

.rich-content {
    line-height: 1.6;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
}

.rich-content td,
.rich-content th {
    border: 1px solid #d1d5db;
    padding: 7px 9px;
}

.rich-content a {
    color: #D7263D;
    font-weight: 700;
}

.compact-checkbox {
    min-height: 47px;
}