/**
 * HUDH Main Styles
 * BEM CSS Structure
 * Primary: #006CB7 | Secondary: #FFCC2A
 */

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
    --hudh-primary: #006CB7;
    --hudh-primary-dark: #004c80;
    --hudh-secondary: #FFCC2A;
    --hudh-secondary-dark: #e0b400;
    --hudh-success: #28a745;
    --hudh-danger: #dc3545;
    --hudh-warning: #ffc107;
    --hudh-info: #17a2b8;
    --hudh-text: #333333;
    --hudh-text-muted: #6c757d;
    --hudh-bg: #f5f7fa;
    --hudh-white: #ffffff;
    --hudh-border: #e8ecef;
    --hudh-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    --hudh-radius: 12px;
    --hudh-radius-sm: 8px;
}

label{
    font-weight: 500;
    display: block;
}

/* ==========================================================================
   FOOTER COMPONENT
   ========================================================================== */

.hudh-footer {
    background: linear-gradient(135deg, #006CB7 0%, #004c80 100%);
    color: #ffffff;
    padding: 40px 0 0;
    margin-top: auto;
}

.hudh-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.hudh-footer__content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hudh-footer__brand {
    flex: 1 1 300px;
}

.hudh-footer__logo {
    max-height: 50px;
    margin-bottom: 15px;
}

.hudh-footer__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    color: #FFCC2A;
}

.hudh-footer__subtitle {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

.hudh-footer__info {
    flex: 1 1 400px;
}

.hudh-footer__info-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #FFCC2A;
    text-transform: uppercase;
}

.hudh-footer__info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hudh-footer__info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.hudh-footer__info-icon {
    width: 20px;
    margin-right: 10px;
    color: #FFCC2A;
    flex-shrink: 0;
    margin-top: 2px;
}

.hudh-footer__info-text {
    opacity: 0.9;
}

.hudh-footer__info-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hudh-footer__info-link:hover {
    color: #FFCC2A;
    text-decoration: none;
}

.hudh-footer__social {
    flex: 0 0 auto;
}

.hudh-footer__social-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #FFCC2A;
    text-transform: uppercase;
}

.hudh-footer__social-links {
    display: flex;
    gap: 10px;
}

.hudh-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hudh-footer__social-link:hover {
    background: #FFCC2A;
    color: #006CB7;
    text-decoration: none;
    transform: translateY(-2px);
}

.hudh-footer__bottom {
    padding: 20px 0;
    text-align: center;
}

.hudh-footer__copyright {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}

/* ==========================================================================
   LAYOUT COMPONENT
   ========================================================================== */

.hudh-layout {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.hudh-layout__wrapper {
    display: flex;
    flex: 1;
    padding:2rem 0;
}

.hudh-layout__sidebar {
}

.hudh-layout__main {
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   BREADCRUMB COMPONENT
   ========================================================================== */

.hudh-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 12px 20px;
    background: var(--hudh-white);
    border-radius: var(--hudh-radius-sm);
    box-shadow: var(--hudh-shadow);
    margin-bottom: 20px;
    list-style: none;
}

.hudh-breadcrumb__item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--hudh-text-muted);
}

.hudh-breadcrumb__item:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: #ddd;
}

.hudh-breadcrumb__link {
    color: var(--hudh-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hudh-breadcrumb__link:hover {
    color: var(--hudh-primary-dark);
    text-decoration: none;
}

.hudh-breadcrumb__item--active {
    color: var(--hudh-text);
    font-weight: 500;
}

/* ==========================================================================
   PAGE HEADER COMPONENT
   ========================================================================== */

.hudh-layout__header {
    background: var(--hudh-white);
    border-radius: var(--hudh-radius);
    box-shadow: var(--hudh-shadow);
    padding: 25px 30px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.hudh-layout__header-title {
    font-size: 22px;
    line-height:28px;
    font-weight: 700;
    color: var(--hudh-text);
    margin: 0;
    display: flex;
    align-items: center;
}

.hudh-layout__header-icon {
    color: var(--hudh-primary);
    margin-right: 12px;
    font-size: 24px;
}

.hudh-layout__header-actions {
    display: flex;
    gap: 10px;
}

.hudh-layout__content .row{
    justify-content: center;
}

/* ==========================================================================
   CARD COMPONENT
   ========================================================================== */

.hudh-card {
    background: var(--hudh-white);
    border-radius: var(--hudh-radius);
    box-shadow: var(--hudh-shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.hudh-card__header {
    padding: 18px 25px;
    border-bottom: 1px solid var(--hudh-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hudh-card__header--primary {
    background: linear-gradient(135deg, var(--hudh-primary) 0%, var(--hudh-primary-dark) 100%);
    color: var(--hudh-white);
    border-bottom: none;
}

.hudh-card__header--primary .hudh-card__title {
    color: var(--hudh-white);
}

.hudh-card__header--primary .hudh-card__icon {
    color: var(--hudh-secondary);
}

.hudh-card__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--hudh-text);
    margin: 0;
    display: flex;
    align-items: center;
}

.hudh-card__icon {
    margin-right: 10px;
    color: var(--hudh-primary);
}

.hudh-card__actions {
    display: flex;
    gap: 8px;
}

.hudh-card__actions button{
    color:#fff
}

.hudh-card__body {
    padding: 25px;
}

.hudh-card__body--compact {
    padding: 15px 20px;
}

.hudh-card__footer {
    padding: 15px 25px;
    border-top: 1px solid var(--hudh-border);
    background: #fafbfc;
}

/* ==========================================================================
   STAT CARD COMPONENT
   ========================================================================== */

.hudh-stat {
    background: var(--hudh-white);
    border-radius: var(--hudh-radius);
    box-shadow: var(--hudh-shadow);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.hudh-stat:hover {
    transform: translateY(-3px);
}

.hudh-stat__value {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.hudh-stat__value--primary { color: var(--hudh-primary); }
.hudh-stat__value--success { color: var(--hudh-success); }
.hudh-stat__value--danger { color: var(--hudh-danger); }
.hudh-stat__value--warning { color: var(--hudh-warning); }
.hudh-stat__value--info { color: var(--hudh-info); }

.hudh-stat__label {
    font-size: 13px;
    color: var(--hudh-text-muted);
    margin: 0;
}

/* ==========================================================================
   TABLE COMPONENT
   ========================================================================== */

.hudh-table {
    width: 100%;
    border-collapse: collapse;
}

.hudh-table th,
.hudh-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--hudh-border);
    font-size: 13px;
}

.hudh-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--hudh-text);
    white-space: nowrap;
}

.hudh-table th.hudh-table__section{
    text-align: center;
    font-weight: 700;
    /* tuỳ chọn */
    background: linear-gradient(135deg, var(--hudh-primary) 0%, var(--hudh-primary-dark) 100%);
    color:#fff
}

.hudh-table tr:hover td {
    background: #f5f8fa;
}

.hudh-table--striped tbody tr:nth-child(even) td {
    background: #fafbfc;
}

.hudh-table__text--right {
    text-align: right;
}

.hudh-table__text--center {
    text-align: center;
}

.hudh-table__empty {
    text-align: center;
    color: var(--hudh-text-muted);
    padding: 30px 15px;
}

/* ==========================================================================
   FORM COMPONENT
   ========================================================================== */

.hudh-form__group:not(:last-child) {
    margin-bottom: 20px;
}

.hudh-form__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--hudh-text);
    margin-bottom: 8px;
}

.hudh-form__label--required::after {
    content: '*';
    color: var(--hudh-danger);
    margin-left: 4px;
}

.hudh-form__input,
.hudh-form__select,
.hudh-form__textarea {
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid var(--hudh-border);
    border-radius: var(--hudh-radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--hudh-white);
}

.hudh-form__input:focus,
.hudh-form__select:focus,
.hudh-form__textarea:focus {
    outline: none;
    border-color: var(--hudh-primary);
    box-shadow: 0 0 0 3px rgba(0, 108, 183, 0.1);
}

.hudh-form__input--error {
    border-color: var(--hudh-danger);
}

.hudh-form__error {
    font-size: 12px;
    color: var(--hudh-danger);
    margin-top: 5px;
}

.hudh-form__help {
    font-size: 12px;
    color: var(--hudh-text-muted);
    margin-top: 5px;
}

/* HUDH form - readonly & disabled */
.hudh-form__input[readonly],
.hudh-form__select[readonly],
.hudh-form__textarea[readonly],
.hudh-form__input:read-only,
.hudh-form__select:read-only,
.hudh-form__textarea:read-only,
.hudh-form__input[disabled],
.hudh-form__select[disabled],
.hudh-form__textarea[disabled],
.hudh-form__input:disabled,
.hudh-form__select:disabled,
.hudh-form__textarea:disabled {
  background: var(--hudh-gray-50, #f5f7fb);
  border-color: var(--hudh-border, #d8e0ea);
  color: var(--hudh-text-muted, #6b7280);
  opacity: 1;                 /* tránh bị “mờ quá” trên Chrome */
  box-shadow: none;
}

/* Cursor */
.hudh-form__input[readonly],
.hudh-form__select[readonly],
.hudh-form__textarea[readonly],
.hudh-form__input:read-only,
.hudh-form__select:read-only,
.hudh-form__textarea:read-only {
  cursor: default;
}

.hudh-form__input[disabled],
.hudh-form__select[disabled],
.hudh-form__textarea[disabled],
.hudh-form__input:disabled,
.hudh-form__select:disabled,
.hudh-form__textarea:disabled {
  cursor: not-allowed;
}

/* Không highlight/focus khi readonly/disabled */
.hudh-form__input[readonly]:focus,
.hudh-form__select[readonly]:focus,
.hudh-form__textarea[readonly]:focus,
.hudh-form__input:read-only:focus,
.hudh-form__select:read-only:focus,
.hudh-form__textarea:read-only:focus,
.hudh-form__input:disabled:focus,
.hudh-form__select:disabled:focus,
.hudh-form__textarea:disabled:focus {
  outline: none;
  box-shadow: none;
  border-color: var(--hudh-border, #d8e0ea);
}

/* Placeholder cũng nhạt theo */
.hudh-form__input[readonly]::placeholder,
.hudh-form__input:read-only::placeholder,
.hudh-form__input:disabled::placeholder {
  color: var(--hudh-text-muted, #9aa4b2);
}

/* ==========================================================================
   BUTTON COMPONENT
   ========================================================================== */

.hudh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--hudh-radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 8px;
}

.hudh-btn:hover {
    text-decoration: none;
}

.hudh-btn--primary {
    background: linear-gradient(135deg, var(--hudh-primary) 0%, var(--hudh-primary-dark) 100%);
    color: var(--hudh-white);
}

.hudh-btn--primary:hover {
    background: linear-gradient(135deg, var(--hudh-primary-dark) 0%, #003d66 100%);
    color: var(--hudh-white);
}

.hudh-btn--default {
    background: var(--hudh-white);
    color: var(--hudh-text);
    border-color: var(--hudh-border);
}

.hudh-btn--default:hover {
    background: #e6e6e6;
    color: var(--hudh-text);
}

.hudh-btn--secondary {
    background: linear-gradient(135deg, var(--hudh-secondary) 0%, var(--hudh-secondary-dark) 100%);
    color: var(--hudh-primary);
}

.hudh-btn--secondary:hover {
    background: linear-gradient(135deg, var(--hudh-secondary-dark) 0%, #cc9200 100%);
    color: var(--hudh-primary);
}

.hudh-btn--success {
    background: var(--hudh-success);
    color: var(--hudh-white);
}

.hudh-btn--success:hover {
    background: #218838;
    color: var(--hudh-white);
}

.hudh-btn--info {
    background: var(--hudh-info);
    color: var(--hudh-white);
}

.hudh-btn--info:hover {
    background: #0e8a9d;
    color: var(--hudh-white);
}

.hudh-btn--danger {
    background: var(--hudh-danger);
    color: var(--hudh-white);
}

.hudh-btn--danger:hover {
    background: #c82333;
    color: var(--hudh-white);
}

.hudh-btn--outline {
    background: transparent;
    border: 1px solid var(--hudh-border);
    color: var(--hudh-text);
}

.hudh-btn--outline:hover {
    background: #f5f5f5;
    color: var(--hudh-text);
}

.hudh-btn--block {
    width: 100%;
}

.hudh-btn--sm {
    padding: 6px 12px;
    font-size: 12px;
}

.hudh-btn--lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* ==========================================================================
   BADGE COMPONENT
   ========================================================================== */

.hudh-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

.hudh-badge--primary { background: rgba(0, 108, 183, 0.1); color: var(--hudh-primary); }
.hudh-badge--success { background: rgba(40, 167, 69, 0.1); color: var(--hudh-success); }
.hudh-badge--danger { background: rgba(220, 53, 69, 0.1); color: var(--hudh-danger); }
.hudh-badge--warning { background: rgba(255, 193, 7, 0.15); color: #856404; }
.hudh-badge--info { background: rgba(23, 162, 184, 0.1); color: var(--hudh-info); }
.hudh-badge--default { background: #e9ecef; color: var(--hudh-text-muted); }

/* ==========================================================================
   ALERT COMPONENT
   ========================================================================== */

.hudh-alert {
    padding: 15px 20px;
    border-radius: var(--hudh-radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.hudh-alert__icon {
    margin-right: 12px;
    font-size: 18px;
    flex-shrink: 0;
}

.hudh-alert__content {
    flex: 1;
}

.hudh-alert__title {
    font-weight: 600;
    margin: 0 0 5px 0;
}

.hudh-alert__message {
    margin: 0;
    font-size: 13px;
}

.hudh-alert--success {
    background: rgba(40, 167, 69, 0.1);
    border-left: 4px solid var(--hudh-success);
    color: #155724;
}

.hudh-alert--danger {
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid var(--hudh-danger);
    color: #721c24;
}

.hudh-alert--warning {
    background: rgba(255, 193, 7, 0.15);
    border-left: 4px solid var(--hudh-warning);
    color: #856404;
}

.hudh-alert--info {
    background: rgba(23, 162, 184, 0.1);
    border-left: 4px solid var(--hudh-info);
    color: #0c5460;
}

/* ==========================================================================
   PAGINATION COMPONENT
   ========================================================================== */

.hudh-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.hudh-pagination__info {
    font-size: 13px;
    color: var(--hudh-text-muted);
}

.hudh-pagination__list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.hudh-pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
    color: var(--hudh-text);
    background: var(--hudh-white);
    border: 1px solid var(--hudh-border);
    border-radius: var(--hudh-radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.hudh-pagination__link:hover {
    background: #f5f5f5;
    text-decoration: none;
    color: var(--hudh-text);
}

.hudh-pagination__link--active {
    background: var(--hudh-primary);
    border-color: var(--hudh-primary);
    color: var(--hudh-white);
}

.hudh-pagination__link--active:hover {
    background: var(--hudh-primary-dark);
    color: var(--hudh-white);
}

/* ==========================================================================
   FILTER COMPONENT
   ========================================================================== */

.hudh-filter {
    background: #f8f9fa;
    border-radius: var(--hudh-radius-sm);
    padding: 20px;
    margin-bottom: 20px;
}

.hudh-filter__row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.hudh-filter__col {
    flex: 1 1 200px;
}

.hudh-filter__actions {
    flex: 0 0 auto;
}

/* ==========================================================================
   LOGIN PAGE
   ========================================================================== */

.hudh-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/image/catalog/background/bg_user.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 20px;
}

.hudh-login__box {
    background: var(--hudh-white);
    border-radius: var(--hudh-radius);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.hudh-login__header {
    background: linear-gradient(135deg, #006CB7 0%, #004c80 100%);
    padding: 30px;
    text-align: center;
}

.hudh-login__logo {
    max-height: 60px;
    margin-bottom: 15px;
}

.hudh-login__title {
    color: var(--hudh-white);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-transform: uppercase;
}

.hudh-login__subtitle {
    color: var(--hudh-secondary);
    font-size: 13px;
    margin: 0;
}

.hudh-login__body {
    padding: 30px;
}

.hudh-login__desc {
    text-align: center;
    color: var(--hudh-text-muted);
    margin-bottom: 25px;
    font-size: 14px;
}

.hudh-login__footer {
    padding: 20px 30px;
    background: #f8f9fa;
    text-align: center;
}

.hudh-login__copyright {
    font-size: 11px;
    color: var(--hudh-text-muted);
    margin: 0;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.hudh-text-center { text-align: center; }
.hudh-text-right { text-align: right; }
.hudh-text-left { text-align: left; }
.hudh-text-muted { color: var(--hudh-text-muted); }
.hudh-text-primary { color: var(--hudh-primary); }
.hudh-text-success { color: var(--hudh-success); }
.hudh-text-danger { color: var(--hudh-danger); }
.hudh-text-warning { color: #856404; }

.hudh-mb-0 { margin-bottom: 0; }
.hudh-mb-10 { margin-bottom: 10px; }
.hudh-mb-20 { margin-bottom: 20px; }
.hudh-mt-20 { margin-top: 20px; }

.hudh-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.hudh-col {
    padding: 0 10px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 991px) {
    .hudh-layout__sidebar {
        flex: 0 0 220px;
        margin-right: 15px;
    }

    .hudh-layout__header {
        padding: 20px;
    }

    .hudh-layout__header-title {
        font-size: 18px;
        line-height:24px;
    }

    .hudh-card__header {
        padding: 15px 20px;
    }

    .hudh-card__body {
        padding: 20px;
    }

    .hudh-stat {
        padding: 20px;
    }

    .hudh-stat__value {
        font-size: 24px;
    }

    .hudh-footer__content {
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hudh-layout__wrapper {
        flex-direction: column;
        padding: 15px 10px;
    }

    .hudh-layout__sidebar {
        flex: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .hudh-layout__header {
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
    }

    .hudh-layout__header-title {
        font-size: 16px;
        line-height:22px;
        justify-content: center;
    }

    .hudh-layout__header-actions {
        justify-content: center;
    }

    .hudh-breadcrumb {
        padding: 10px 15px;
    }

    .hudh-card__header {
        padding: 12px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hudh-card__body {
        padding: 15px;
    }

    .hudh-stat {
        padding: 15px;
        margin-bottom:20px;
    }

    .hudh-stat__value {
        font-size: 22px;
    }

    .hudh-stat__label {
        font-size: 12px;
    }

    .hudh-table th,
    .hudh-table td {
        padding: 10px;
        font-size: 12px;
    }

    .hudh-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .hudh-filter__row {
        flex-direction: column;
    }

    .hudh-filter__col,
    .hudh-filter__actions {
        flex: 1 1 100%;
    }

    .hudh-pagination {
        flex-direction: column;
        gap: 15px;
    }

    .hudh-footer {
        padding: 30px 0 0;
    }

    .hudh-footer__content {
        flex-direction: column;
        gap: 25px;
    }

    .hudh-footer__brand,
    .hudh-footer__info,
    .hudh-footer__social {
        flex: 1 1 100%;
    }

    .hudh-footer__social-links {
        justify-content: flex-start;
    }

    .hudh-login__box {
        max-width: 100%;
    }

    .hudh-login__header {
        padding: 25px 20px;
    }

    .hudh-login__body {
        padding: 25px 20px;
    }

    .hudh-login__footer {
        padding: 15px 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hudh-layout__header-title {
        font-size: 14px;
        line-height:20px;
    }

    .hudh-card__title {
        font-size: 14px;
    }

    .hudh-stat__value {
        font-size: 20px;
    }

    .hudh-footer__info-item {
        font-size: 12px;
    }
}

/* ==========================================================================
   DIVIDER
   ========================================================================== */

.hudh-divider {
    border: none;
    border-top: 1px solid var(--hudh-border);
    margin: 20px 0;
}

/* ==========================================================================
   FORM ACTIONS
   ========================================================================== */

.hudh-form__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

@media (max-width: 480px) {
    .hudh-form__actions {
        flex-direction: column;
    }
    
    .hudh-form__actions .hudh-btn {
        width: 100%;
    }
}

/* ==========================================================================
   ALERT PROMINENT (for important warnings)
   ========================================================================== */

.hudh-alert--prominent {
    border-width: 2px;
    padding: 20px;
}

.hudh-alert--prominent .hudh-alert__icon {
    font-size: 28px;
}

.hudh-alert--prominent .hudh-alert__title {
    font-size: 18px;
    margin-bottom: 8px;
}

.hudh-alert--prominent .hudh-alert__message {
    font-size: 14px;
}

/* ==========================================================================
   LIST COMPONENT
   ========================================================================== */

.hudh-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.hudh-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.hudh-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--hudh-primary);
    font-weight: bold;
}

.hudh-list--muted li {
    color: #666;
    font-size: 13px;
}

.hudh-list--muted li::before {
    color: #999;
}

/* ==========================================================================
   MARGIN TOP UTILITY
   ========================================================================== */

.hudh-mt-20 {
    margin-top: 20px;
}

/* ==========================================================================
   Finance style
   ========================================================================== */

/* ===== Month status cards (use your :root variables) ===== */
.hudh-month-status{
  /* defaults */
  --bd: var(--hudh-border);
  --bg: var(--hudh-white);
  --text: var(--hudh-text);

  /* state tokens (will be overridden by --paid/--unpaid/--future) */
  --accent: var(--hudh-info);
  --badge-bg: rgba(23, 162, 184, .14); /* fallback */
  --badge-text: var(--hudh-text);

  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--hudh-radius);
  padding: 12px 14px;
  min-height: 54px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 12px;

  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  position: relative;
  overflow: hidden;
}

.hudh-month-status:before{
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: var(--accent);
  opacity: .95;
}

.hudh-month-status:hover{
  transform: translateY(-1px);
  box-shadow: var(--hudh-shadow);
  border-color: rgba(0,108,183,.25); /* theo brand primary */
}

.hudh-month-status > strong{
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.hudh-month-status__label{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 6px 10px;
  border-radius: 999px;

  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.hudh-month-status__label i{
  font-size: 14px;
  line-height: 1;
  opacity: .95;
}

/* ===== States ===== */

/* ĐÃ TRẢ */
.hudh-month-status--paid{
  --accent: var(--hudh-success);
  --bg: rgba(40,167,69,.08);
  --bd: rgba(40,167,69,.22);
  --badge-bg: rgba(40,167,69,.16);
  --badge-text: var(--hudh-success);
}

/* CHƯA TRẢ */
.hudh-month-status--unpaid{
  --accent: var(--hudh-danger);
  --bg: rgba(220,53,69,.08);
  --bd: rgba(220,53,69,.22);
  --badge-bg: rgba(220,53,69,.14);
  --badge-text: var(--hudh-danger);
}

/* CHƯA ĐẾN */
.hudh-month-status--future{
  /* dùng brand primary cho “chưa đến” nhìn đồng bộ hệ thống */
  --accent: var(--hudh-primary);
  --bg: rgba(0,108,183,.07);
  --bd: rgba(0,108,183,.20);
  --badge-bg: rgba(0,108,183,.12);
  --badge-text: var(--hudh-primary-dark);
}

/* Mobile nhỏ: label rớt dòng nếu chật */
@media (max-width: 360px){
  .hudh-month-status{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}


/* ==========================================================================
   Report style
   ========================================================================== */

.hudh-form__radio{
    margin-bottom:0;
}
.hudh-form__radio-group .hudh-form__radio:not(:last-child){
    margin-right:1rem;
}

/* ==========================================================================
   Ticket style
   ========================================================================== */
.hudh-comment{
    display: flex;
}
.hudh-comment 
.hudh-comment__avatar {
    margin-right: 15px;
}

