body {
    background: #f6f8f7;
    color: #26302b;
    font-family: "Segoe UI", Arial, sans-serif;
}

body:has(.login-page) {
    overflow: hidden;
}

body:has(.app-shell) {
    background:
        linear-gradient(120deg, rgba(255, 247, 251, 0.9), rgba(249, 232, 240, 0.86)),
        #fff7fb;
    min-height: 100vh;
    overflow: hidden;
}

.app-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    background: linear-gradient(180deg, #fff8fb 0%, #f9e4ef 58%, #efd8f7 100%);
    border-right: 1px solid rgba(219, 145, 184, 0.22);
    box-shadow: 12px 0 40px rgba(151, 84, 125, 0.12);
    display: flex;
    flex-direction: column;
    flex: 0 0 270px;
    height: 100vh;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 22px 18px;
    transition: flex-basis 0.32s ease, padding 0.32s ease, transform 0.32s ease;
    z-index: 20;
}

.sidebar::-webkit-scrollbar,
.content-area::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb,
.content-area::-webkit-scrollbar-thumb {
    background: rgba(206, 87, 148, 0.32);
    border-radius: 999px;
}

.sidebar::-webkit-scrollbar-track,
.content-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.38);
}

.sidebar-brand {
    align-items: center;
    display: flex;
    gap: 12px;
    height: 58px;
    margin-bottom: 22px;
    min-height: 58px;
}

.brand-icon {
    align-items: center;
    background: linear-gradient(135deg, #e875a8, #b66ad6);
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(180, 93, 151, 0.24);
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 46px;
    font-size: 22px;
    height: 46px;
    justify-content: center;
    width: 46px;
    transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.brand-text strong,
.brand-text span,
.sidebar-link span {
    white-space: nowrap;
    transition: opacity 0.22s ease, width 0.32s ease, transform 0.32s ease;
}

.brand-text strong {
    color: #804866;
    display: block;
    font-size: 17px;
    line-height: 1.2;
}

.brand-text span {
    color: #a77b94;
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

.sidebar-menu {
    display: grid;
    gap: 8px;
}

.sidebar-link {
    align-items: center;
    border-radius: 8px;
    color: #8d6079;
    display: flex;
    gap: 12px;
    min-height: 46px;
    padding: 0 14px;
    text-decoration: none;
    transition: background 0.22s ease, color 0.22s ease, transform 0.32s ease, box-shadow 0.22s ease, width 0.32s ease, padding 0.32s ease;
}

.sidebar-link i {
    align-items: center;
    display: inline-flex;
    flex: 0 0 22px;
    font-size: 18px;
    justify-content: center;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 24px rgba(173, 89, 142, 0.12);
    color: #ce5794;
    transform: translateX(3px);
}

.app-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100vh;
    min-width: 0;
    overflow: hidden;
}

.topbar {
    align-items: center;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(219, 145, 184, 0.16);
    display: flex;
    gap: 14px;
    min-height: 72px;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.icon-button,
.logout-button {
    align-items: center;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    justify-content: center;
    min-height: 42px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.icon-button {
    background: #fff1f7;
    color: #bb5c91;
    font-size: 22px;
    width: 44px;
}

.icon-button:hover {
    background: #e875a8;
    color: #ffffff;
    transform: translateY(-1px);
}

.topbar-title {
    display: grid;
    line-height: 1.2;
}

.topbar-title span {
    color: #a77b94;
    font-size: 12px;
}

.topbar-title strong {
    color: #79455f;
    font-size: 16px;
}

.logout-button {
    background: #ffffff;
    border: 1px solid rgba(219, 145, 184, 0.28);
    color: #bb5c91;
    gap: 8px;
    margin-left: auto;
    padding: 0 14px;
    text-decoration: none;
}

.logout-button:hover {
    background: #fff1f7;
    color: #a94d7b;
    transform: translateY(-1px);
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
}

.content-alerts {
    margin-bottom: 18px;
}

body.sidebar-collapsed .sidebar {
    flex-basis: 86px;
    padding-left: 18px;
    padding-right: 18px;
}

body.sidebar-collapsed .brand-text,
body.sidebar-collapsed .sidebar-link span {
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateX(-8px);
    width: 0;
}

body.sidebar-collapsed .sidebar-brand {
    gap: 0;
    justify-content: center;
}

body.sidebar-collapsed .brand-icon {
    transform: translateX(0);
}

body.sidebar-collapsed .sidebar-link {
    align-items: center;
    display: flex;
    height: 52px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    min-height: 52px;
    padding: 0;
    transform: none;
    width: 50px;
}

body.sidebar-collapsed .sidebar-link:hover,
body.sidebar-collapsed .sidebar-link.active {
    transform: translateY(-1px);
}

body.sidebar-collapsed .sidebar-link i {
    display: flex;
    flex: 0 0 24px;
    font-size: 19px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    text-align: center;
    transform: translateX(3px);
    width: 24px;
}

.login-page {
    align-items: center;
    background:
        linear-gradient(120deg, rgba(255, 247, 251, 0.98) 0%, rgba(255, 228, 239, 0.82) 42%, rgba(241, 218, 248, 0.9) 100%),
        linear-gradient(45deg, #fff8fb 0%, #f6d5e5 50%, #eadcf7 100%);
    background-size: 180% 180%;
    display: flex;
    height: 100vh;
    justify-content: center;
    padding: 18px;
    position: relative;
    animation: softGradient 9s ease-in-out infinite;
    overflow: hidden;
}

.login-page::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.36) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
    background-size: 46px 46px;
    content: "";
    inset: 0;
    opacity: 0.35;
    position: absolute;
}

.login-panel {
    backdrop-filter: blur(18px);
    animation: panelIn 0.7s ease both;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 251, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 8px;
    box-shadow: 0 22px 64px rgba(156, 83, 123, 0.24);
    max-width: 372px;
    padding: 28px 28px 26px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.login-panel::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), transparent);
    content: "";
    height: 1px;
    left: 22px;
    position: absolute;
    right: 22px;
    top: 0;
}

.login-alerts {
    margin-bottom: 14px;
}

.login-alerts .alert {
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 0;
    padding: 10px 38px 10px 12px;
}

.login-avatar {
    align-items: center;
    animation: avatarPulse 2.8s ease-in-out infinite;
    background: linear-gradient(135deg, #e875a8, #b66ad6);
    border: 5px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    box-shadow: 0 14px 32px rgba(158, 83, 140, 0.28);
    display: flex;
    height: 82px;
    justify-content: center;
    margin: -58px auto 14px;
    position: relative;
    width: 82px;
}

.login-avatar::before {
    border: 3px solid #ffffff;
    border-radius: 50%;
    content: "";
    height: 22px;
    position: absolute;
    top: 20px;
    width: 22px;
}

.login-avatar::after {
    border: 3px solid #ffffff;
    border-radius: 50% 50% 0 0;
    border-bottom: 0;
    content: "";
    height: 20px;
    position: absolute;
    top: 46px;
    width: 38px;
}

.login-heading {
    margin-bottom: 18px;
    text-align: center;
}

.login-heading h1 {
    color: #8f4d75;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 6px;
}

.login-heading p {
    color: #9b788d;
    font-size: 13px;
    margin-bottom: 0;
}

.login-input {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(232, 177, 202, 0.7);
    border-radius: 8px;
    display: flex;
    min-height: 50px;
    padding: 0 14px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.login-input:focus-within {
    background: #ffffff;
    border-color: #d95f9e;
    box-shadow: 0 10px 24px rgba(217, 95, 158, 0.14), 0 0 0 0.2rem rgba(217, 95, 158, 0.14);
    transform: translateY(-2px);
}

.login-input .form-control {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #6d4a60;
    font-size: 15px;
    padding: 12px 8px;
}

.login-input .form-control::placeholder {
    color: #b192a4;
}

.input-symbol {
    align-items: center;
    background: #f5d7e5;
    border-radius: 50%;
    color: #a94d7b;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 17px;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    width: 34px;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.input-symbol i {
    line-height: 1;
}

.login-input:focus-within .input-symbol {
    background: #d95f9e;
    color: #ffffff;
    transform: scale(1.04);
}

.password-toggle {
    background: transparent;
    border: 0;
    color: #ad7191;
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 0 6px 10px;
    transition: color 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus {
    color: #d95f9e;
    outline: 0;
}

.login-options {
    align-items: center;
    color: #9b788d;
    display: flex;
    font-size: 12px;
    gap: 12px;
    justify-content: flex-start;
    margin: 2px 0 16px;
}

.remember-check {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    margin: 0;
}

.remember-check input {
    accent-color: #d95f9e;
}

.login-button {
    background: linear-gradient(135deg, #e875a8, #b66ad6);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(177, 87, 145, 0.28);
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    min-height: 50px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.login-button::before {
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    content: "";
    height: 100%;
    left: -80%;
    position: absolute;
    top: 0;
    transform: skewX(-18deg);
    transition: left 0.55s ease;
    width: 55%;
}

.login-button span {
    position: relative;
    z-index: 1;
}

.login-button:hover,
.login-button:focus {
    background: linear-gradient(135deg, #dc5e98, #a957c9);
    box-shadow: 0 16px 28px rgba(177, 87, 145, 0.34);
    color: #ffffff;
    transform: translateY(-2px);
}

.login-button:hover::before,
.login-button:focus::before {
    left: 130%;
}

.login-button.is-loading {
    cursor: wait;
    opacity: 0.88;
}

.ripple {
    animation: rippleEffect 0.6s linear;
    background: rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    pointer-events: none;
    position: absolute;
    transform: scale(0);
}

.login-note {
    background: rgba(255, 246, 250, 0.86);
    border: 1px solid rgba(232, 177, 202, 0.48);
    border-radius: 8px;
    color: #8a6178;
    font-size: 14px;
    margin-top: 22px;
    padding: 12px;
    text-align: center;
}

.page-heading {
    margin-bottom: 24px;
}

.page-heading-actions {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.page-heading h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-heading p {
    color: #65736b;
    margin-bottom: 0;
}

.summary-card,
.data-panel {
    background: #ffffff;
    border: 1px solid rgba(219, 145, 184, 0.18);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(151, 84, 125, 0.08);
}

.summary-card {
    display: flex;
    flex-direction: column;
    min-height: 204px;
    padding: 24px;
}

.summary-card span {
    color: #65736b;
    display: block;
    margin-bottom: 8px;
}

.summary-card strong {
    color: #198754;
    display: block;
    font-size: 34px;
    line-height: 1;
}

.data-panel {
    overflow: hidden;
}

.data-table-panel {
    padding: 18px;
}

.table-toolbar,
.table-footer {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.table-toolbar {
    background: linear-gradient(135deg, rgba(255, 248, 251, 0.92), rgba(255, 241, 247, 0.68));
    border: 1px solid rgba(219, 145, 184, 0.16);
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 12px;
}

.table-toolbar-group {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.table-footer {
    color: #9c7088;
    font-size: 13px;
    margin-top: 16px;
}

.table-length {
    align-items: center;
    color: #9c7088;
    display: inline-flex;
    gap: 8px;
    font-size: 13px;
}

.table-length > .form-select {
    background-color: #ffffff;
    border: 1px solid rgba(219, 145, 184, 0.24);
    border-radius: 8px;
    color: #75445c;
    font-weight: 700;
    min-height: 36px;
    width: 86px;
}

.table-length > .form-select:focus {
    border-color: #d95f9e;
    box-shadow: 0 0 0 0.18rem rgba(217, 95, 158, 0.12);
}

.pretty-select .form-select {
    appearance: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #75445c;
    font-weight: 700;
    min-height: 36px;
    padding: 0 34px 0 12px;
    width: 86px;
}

.pretty-select .form-select:focus {
    box-shadow: none;
}

.pretty-select {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(219, 145, 184, 0.24);
    border-radius: 8px;
    display: inline-flex;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pretty-select:focus-within {
    border-color: #d95f9e;
    box-shadow: 0 0 0 0.18rem rgba(217, 95, 158, 0.12);
}

.pretty-select > i {
    color: #b57999;
    display: none;
    font-size: 12px;
    pointer-events: none;
    position: absolute;
    right: 12px;
}

.native-select-hidden {
    height: 1px !important;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px !important;
}

.pretty-select-button {
    align-items: center;
    background: #ffffff;
    border: 0;
    border-radius: 8px;
    color: #75445c;
    display: inline-flex;
    font-weight: 700;
    gap: 16px;
    justify-content: space-between;
    min-height: 36px;
    min-width: 86px;
    padding: 0 12px;
}

.pretty-select-button i {
    color: #b57999;
    font-size: 12px;
}

.pretty-select-menu {
    background: #ffffff;
    border: 1px solid rgba(219, 145, 184, 0.22);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(151, 84, 125, 0.16);
    display: none;
    left: 0;
    min-width: 100%;
    overflow: hidden;
    padding: 6px;
    position: absolute;
    top: calc(100% + 8px);
    z-index: 40;
}

.pretty-select.open .pretty-select-menu {
    display: grid;
    gap: 2px;
}

.pretty-select-option {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #7e5069;
    min-height: 32px;
    padding: 0 10px;
    text-align: left;
}

.pretty-select-option:hover,
.pretty-select-option.active {
    background: #fff1f7;
    color: #ce5794;
}

.date-filter-group {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.date-filter {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(219, 145, 184, 0.24);
    border-radius: 8px;
    color: #a36d8a;
    display: inline-flex;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.date-filter:focus-within {
    border-color: #d95f9e;
    box-shadow: 0 0 0 0.18rem rgba(217, 95, 158, 0.12);
}

.date-filter span {
    font-size: 12px;
    font-weight: 700;
}

.date-filter input,
.elegant-date {
    color: #75445c;
    font-weight: 600;
}

.date-filter input {
    background: transparent;
    border: 0;
    min-height: 34px;
    outline: 0;
    width: 112px;
}

.date-input-wrap {
    align-items: center;
    display: inline-flex;
    position: relative;
    width: 100%;
}

.date-filter .date-input-wrap {
    width: 180px;
}

.date-input-wrap input {
    padding-right: 34px;
}

.date-filter .date-input-wrap input {
    width: 100%;
}

.date-picker-button {
    align-items: center;
    background: rgba(255, 241, 247, 0.86);
    border: 0;
    border-radius: 6px;
    color: #ce5794;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    z-index: 2;
}

.date-picker-button:hover,
.date-picker-button:focus {
    background: linear-gradient(135deg, #e875a8, #b66ad6);
    color: #ffffff;
    outline: 0;
}

.date-picker-popover {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(219, 145, 184, 0.22);
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(151, 84, 125, 0.18);
    display: none;
    left: 0;
    min-width: 260px;
    padding: 12px;
    position: fixed;
    top: 0;
    z-index: 3000;
}

.date-picker-popover.open {
    display: block;
}

.date-picker-header,
.date-picker-footer {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.date-picker-header {
    gap: 8px;
    margin-bottom: 10px;
}

.date-picker-header strong {
    color: #75445c;
    font-size: 14px;
}

.date-picker-header button,
.date-picker-footer button,
.date-picker-day {
    background: transparent;
    border: 0;
}

.date-picker-header button {
    align-items: center;
    border-radius: 6px;
    color: #ce5794;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.date-picker-selectors {
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(112px, 1fr) 78px;
    width: 100%;
}

.date-picker-select {
    appearance: none;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(232, 117, 168, 0.32), rgba(182, 106, 214, 0.24)) border-box;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #75445c;
    font-size: 12px;
    font-weight: 750;
    min-height: 30px;
    outline: 0;
    padding: 0 9px;
}

.date-picker-select:focus {
    box-shadow: 0 0 0 0.16rem rgba(217, 95, 158, 0.12);
}

.date-picker-header button:hover,
.date-picker-day:hover {
    background: #fff1f7;
}

.date-picker-grid {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(7, 1fr);
}

.date-picker-day-name {
    color: #b57999;
    font-size: 11px;
    font-weight: 750;
    padding: 4px 0;
    text-align: center;
}

.date-picker-day {
    border-radius: 6px;
    color: #75445c;
    font-size: 13px;
    height: 30px;
}

.date-picker-day.today {
    box-shadow: inset 0 0 0 1px rgba(206, 87, 148, 0.34);
}

.date-picker-day.selected {
    background: linear-gradient(135deg, #e875a8, #b66ad6);
    color: #ffffff;
    font-weight: 750;
}

.date-picker-footer {
    border-top: 1px solid rgba(219, 145, 184, 0.14);
    margin-top: 10px;
    padding-top: 10px;
}

.date-picker-footer button {
    color: #ce5794;
    font-size: 12px;
    font-weight: 700;
}

.date-picker-footer button:hover {
    color: #75445c;
}

.date-filter input::placeholder,
.custom-date-input::placeholder {
    color: #c39ab0;
}

.custom-date-input {
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(232, 117, 168, 0.42), rgba(182, 106, 214, 0.32)) border-box;
    border: 1px solid transparent !important;
    border-radius: 8px;
    min-height: 42px;
    padding-left: 14px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.custom-date-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(217, 95, 158, 0.12) !important;
    transform: translateY(-1px);
}

.table-search {
    max-width: 280px;
    position: relative;
    width: 100%;
}

.table-search i {
    color: #b57999;
    left: 12px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.table-search .form-control {
    border-color: rgba(219, 145, 184, 0.32);
    border-radius: 8px;
    color: #75445c;
    min-height: 38px;
    padding-left: 36px;
}

.modern-table thead th {
    cursor: pointer;
    padding-left: 14px !important;
    padding-right: 28px !important;
    position: relative;
    text-align: center !important;
    white-space: nowrap;
}

.modern-table thead th:last-child {
    cursor: default;
    padding-right: 14px !important;
}

.modern-table thead th i {
    color: #c783a9;
    font-size: 12px;
    margin-left: 0;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.modern-table tbody td {
    color: #765166;
    padding-left: 14px !important;
    padding-right: 14px !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.modern-table tbody td:first-child,
.modern-table tbody td:last-child {
    text-align: center !important;
}

.table-actions {
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
}

.icon-action {
    align-items: center;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    width: 36px;
}

.icon-action.edit {
    background: #fff1f7;
    color: #ce5794;
}

.icon-action.delete {
    background: #fff0f0;
    color: #d85b6a;
}

.icon-action:hover {
    transform: translateY(-1px);
}

.action-button,
.danger-button,
.soft-button,
.page-button {
    align-items: center;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    text-decoration: none;
}

.action-button {
    background: linear-gradient(135deg, #e875a8, #b66ad6);
    box-shadow: 0 12px 24px rgba(177, 87, 145, 0.2);
    color: #ffffff;
    font-weight: 700;
}

.action-button:hover {
    color: #ffffff;
}

.danger-button {
    background: #dc5d70;
    color: #ffffff;
    font-weight: 700;
}

.danger-button:hover {
    background: #c7485d;
    color: #ffffff;
}

.soft-button,
.page-button {
    background: #fff1f7;
    color: #a94d7b;
}

.pagination-controls {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.page-button {
    font-size: 13px;
    min-height: 36px;
}

.page-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.page-indicator {
    background: #ffffff;
    border: 1px solid rgba(219, 145, 184, 0.22);
    border-radius: 8px;
    color: #75445c;
    display: inline-flex;
    min-width: 64px;
    padding: 8px 10px;
    justify-content: center;
}

.app-modal {
    border: 1px solid rgba(219, 145, 184, 0.18);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(151, 84, 125, 0.22);
}

.app-modal .modal-header,
.app-modal .modal-footer {
    border-color: rgba(219, 145, 184, 0.16);
}

.app-modal .modal-title {
    color: #75445c;
    font-weight: 750;
}

.app-modal .form-label {
    color: #8b5d76;
    font-size: 13px;
    font-weight: 700;
}

.app-modal .form-control {
    border-color: rgba(219, 145, 184, 0.32);
    border-radius: 8px;
    color: #75445c;
}

.app-modal .form-control:focus {
    border-color: #d95f9e;
    box-shadow: 0 0 0 0.2rem rgba(217, 95, 158, 0.14);
}

.app-modal .form-select {
    border-color: rgba(219, 145, 184, 0.32);
    border-radius: 8px;
    color: #75445c;
}

.app-modal .form-select:focus {
    border-color: #d95f9e;
    box-shadow: 0 0 0 0.2rem rgba(217, 95, 158, 0.14);
}

.status-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
}

.status-badge.success {
    background: #eaf8f0;
    color: #21834e;
}

.status-badge.muted {
    background: #fff1f7;
    color: #a94d7b;
}

.calculation-box {
    align-items: center;
    background: #fff8fb;
    border: 1px solid rgba(219, 145, 184, 0.2);
    border-radius: 8px;
    color: #8b5d76;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 12px;
}

.calculation-box i {
    color: #ce5794;
    font-size: 18px;
}

.calculation-box span {
    flex: 1;
    font-size: 13px;
}

.calculation-box strong {
    color: #75445c;
    white-space: nowrap;
}

.empty-state {
    align-items: center;
    color: #9c7088;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 260px;
    text-align: center;
}

.empty-state i {
    color: #ce5794;
    font-size: 48px;
    margin-bottom: 14px;
}

.empty-state h2 {
    color: #75445c;
    font-size: 22px;
    font-weight: 750;
    margin-bottom: 6px;
}

.empty-state p {
    margin: 0;
}

.rule-list {
    display: grid;
    gap: 12px;
}

.scroll-panel {
    max-height: 230px;
    overflow-y: auto;
    padding-right: 4px;
}

.scroll-panel::-webkit-scrollbar {
    width: 7px;
}

.scroll-panel::-webkit-scrollbar-thumb {
    background: rgba(206, 87, 148, 0.3);
    border-radius: 999px;
}

.scroll-panel::-webkit-scrollbar-track {
    background: rgba(255, 241, 247, 0.68);
    border-radius: 999px;
}

.scroll-panel .modern-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.rule-item {
    align-items: flex-start;
    background: #fff8fb;
    border: 1px solid rgba(219, 145, 184, 0.16);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    padding: 13px;
}

.rule-item i {
    color: #ce5794;
    flex: 0 0 auto;
    font-size: 18px;
    margin-top: 2px;
}

.rule-item strong {
    color: #75445c;
    display: block;
    font-size: 14px;
}

.rule-item span {
    color: #a77b94;
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.report-actions {
    display: inline-flex;
    gap: 10px;
}

.report-header {
    display: none;
}

.report-filter {
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 248, 251, 0.94), rgba(255, 241, 247, 0.72));
    border: 1px solid rgba(219, 145, 184, 0.18);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px;
}

.report-filter label {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(219, 145, 184, 0.24);
    border-radius: 8px;
    display: inline-flex;
    gap: 8px;
    min-height: 40px;
    min-width: 210px;
    padding: 0 12px;
}

.report-filter span {
    color: #a36d8a;
    font-size: 12px;
    font-weight: 700;
}

.report-filter select,
.report-filter input {
    background: transparent;
    border: 0;
    color: #75445c;
    font-weight: 700;
    min-height: 34px;
    outline: 0;
}

.report-filter .date-input-wrap {
    width: 150px;
}

.report-filter input {
    width: 120px;
}

.report-filter input[name="tanggal_awal"],
.report-filter input[name="tanggal_akhir"] {
    width: 100%;
}

.table thead th {
    background: #fff1f7;
    color: #8b4d70;
    font-weight: 700;
}

.dashboard-hero {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 247, 0.76)),
        linear-gradient(135deg, #ffd7e7, #efd8f7);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(151, 84, 125, 0.12);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
    overflow: hidden;
    padding: 24px;
    position: relative;
}

.dashboard-hero::after {
    background: rgba(232, 117, 168, 0.12);
    border-radius: 999px;
    content: "";
    height: 150px;
    position: absolute;
    right: -54px;
    top: -62px;
    width: 150px;
}

.eyebrow {
    color: #ce5794;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.dashboard-hero h1 {
    color: #75445c;
    font-size: 30px;
    font-weight: 750;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.dashboard-hero p {
    color: #9c7088;
    margin: 0;
    max-width: 620px;
}

.hero-badge {
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(151, 84, 125, 0.12);
    color: #ce5794;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 8px;
    padding: 12px 14px;
    position: relative;
    z-index: 1;
}

.hero-badge i {
    font-size: 20px;
}

.hero-badge span {
    color: #79455f;
    font-weight: 700;
}

.dashboard-stats {
    margin-bottom: 10px;
}

.stat-card {
    overflow: hidden;
    position: relative;
}

.stat-card::after {
    border-radius: 999px;
    content: "";
    height: 88px;
    opacity: 0.38;
    position: absolute;
    right: -28px;
    top: -28px;
    width: 88px;
}

.stat-card.pink::after {
    background: #f5a8ca;
}

.stat-card.peach::after {
    background: #ffc6ad;
}

.stat-card.violet::after {
    background: #c9a3f2;
}

.stat-icon {
    align-items: center;
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-size: 20px;
    height: 44px;
    justify-content: center;
    margin-bottom: 16px;
    width: 44px;
}

.pink .stat-icon {
    background: linear-gradient(135deg, #e875a8, #d95f9e);
}

.peach .stat-icon {
    background: linear-gradient(135deg, #ff9f87, #e875a8);
}

.violet .stat-icon {
    background: linear-gradient(135deg, #b66ad6, #8f6be8);
}

.stat-card span {
    color: #9c7088;
    font-weight: 600;
}

.stat-card strong {
    align-items: center;
    color: #75445c;
    display: flex;
    font-size: 36px;
    line-height: 1.1;
    min-height: 44px;
}

.stat-card .small-stat {
    font-size: 24px;
    line-height: 1.15;
    min-height: 44px;
    word-break: break-word;
}

.stat-card small {
    color: #b08aa0;
    display: block;
    margin-top: 10px;
}

.dashboard-panel {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(219, 145, 184, 0.18);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(151, 84, 125, 0.08);
    min-height: 100%;
    padding: 22px;
}

.panel-heading {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.panel-heading h2 {
    color: #75445c;
    font-size: 19px;
    font-weight: 750;
    margin-bottom: 4px;
}

.panel-heading p {
    color: #a77b94;
    font-size: 13px;
    margin: 0;
}

.panel-chip {
    background: #fff1f7;
    border: 1px solid rgba(219, 145, 184, 0.24);
    border-radius: 999px;
    color: #ce5794;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 10px;
}

.chart-wrap {
    height: 300px;
    position: relative;
}

.status-list {
    display: grid;
    gap: 12px;
}

.status-item {
    align-items: center;
    background: #fff8fb;
    border: 1px solid rgba(219, 145, 184, 0.16);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    padding: 13px;
}

.status-item i {
    color: #d95f9e;
    flex: 0 0 auto;
    font-size: 20px;
}

.status-item.muted i {
    color: #b66ad6;
}

.status-item strong {
    color: #75445c;
    display: block;
    font-size: 14px;
}

.status-item span {
    color: #a77b94;
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

@keyframes softGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes avatarPulse {
    0%,
    100% {
        box-shadow: 0 14px 32px rgba(158, 83, 140, 0.28);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 18px 38px rgba(158, 83, 140, 0.34);
        transform: translateY(-3px);
    }
}

@keyframes rippleEffect {
    to {
        opacity: 0;
        transform: scale(4);
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 14px;
    }

    .login-panel {
        max-width: 100%;
        padding: 24px 22px;
    }

    .login-avatar {
        height: 76px;
        margin-top: -52px;
        width: 76px;
    }

    .login-avatar::before {
        height: 20px;
        top: 18px;
        width: 20px;
    }

    .login-avatar::after {
        height: 18px;
        top: 43px;
        width: 34px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

}

@media (max-width: 992px) {
    .sidebar {
        bottom: 0;
        left: 0;
        position: fixed;
        top: 0;
        transform: translateX(-105%);
        width: 270px;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        background: rgba(63, 37, 52, 0.32);
        inset: 0;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        transition: opacity 0.2s ease;
        z-index: 15;
    }

    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .topbar {
        padding: 0 18px;
    }

    .content-area {
        padding: 20px 16px;
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .topbar-title {
        display: none;
    }

    .logout-button span {
        display: none;
    }

    .logout-button {
        min-width: 42px;
        padding: 0;
    }

    .dashboard-hero h1 {
        font-size: 24px;
    }

    .dashboard-hero,
    .dashboard-panel,
    .summary-card {
        padding: 18px;
    }

    .panel-heading {
        flex-direction: column;
    }

    .chart-wrap {
        height: 250px;
    }

    .page-heading-actions,
    .table-toolbar,
    .table-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .table-search {
        max-width: none;
    }

    .pagination-controls {
        justify-content: space-between;
        width: 100%;
    }

    .report-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }
}

@media print {
    body {
        background: #ffffff !important;
        color: #000000;
    }

    .sidebar,
    .sidebar-backdrop,
    .topbar,
    .print-hidden,
    .content-alerts {
        display: none !important;
    }

    .app-shell,
    .app-main,
    .content-area {
        display: block;
        height: auto;
        min-height: 0;
        overflow: visible;
        padding: 0;
    }

    .report-print-area {
        display: block;
        padding: 0;
    }

    .report-header {
        display: block;
        margin-bottom: 18px;
        text-align: center;
    }

    .report-header h2 {
        color: #000000;
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .report-header p {
        color: #333333;
        font-size: 12px;
        margin: 0;
    }

    .data-panel,
    .data-table-panel {
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    .table-responsive {
        overflow: visible;
    }

    .modern-table {
        font-size: 11px;
    }

    .modern-table thead th {
        background: #eeeeee !important;
        color: #000000 !important;
    }

    .status-badge {
        border: 1px solid #999999;
        color: #000000 !important;
        background: transparent !important;
        padding: 2px 6px;
    }
}
