.bm-attendance-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bm-attendance-card,
.bm-attendance-hero {
    background: #1f1f1f;
    border: 1px solid #343434;
    border-radius: 14px;
}

.bm-attendance-hero {
    padding: 24px 20px;
}

.bm-attendance-hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
}

.bm-attendance-hero-title-text {
    display: inline-block;
    color: #ffffff;
}

.bm-attendance-hero-title-text > span {
    color: #12D5D3;
}

.bm-attendance-hero-check {
    width: auto;
    height: 70px;
    object-fit: contain;
}

.bm-attendance-card {
    padding: 18px;
}

.bm-attendance-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.bm-attendance-calendar-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.bm-attendance-calendar-titleline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bm-attendance-calendar-date-full {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.bm-attendance-calendar-stats {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 16px;
}

.bm-attendance-stat-chip {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #343434;
    border-radius: 12px;
    background: #171717;
}

.bm-attendance-stat-chip strong {
    display: block;
    margin-bottom: 4px;
    color: #8f8f8f;
    font-size: 12px;
    font-weight: 700;
}

.bm-attendance-stat-chip span {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

.bm-attendance-calendar-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.bm-attendance-nav-btn,
.bm-attendance-policy-btn,
.bm-attendance-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid #4b4b4b;
    background: #2d2d2d;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.bm-attendance-policy-btn {
    margin-left: auto;
    background: #124844;
    border-color: #124844;
}

.bm-attendance-calendar-wrap {
    overflow: hidden;
}

.bm-attendance-calendar {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.bm-attendance-calendar th {
    height: 42px;
    background: #083131;
    border: 1px solid #303030;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.bm-attendance-week-short {
    display: none;
}

.bm-attendance-calendar th.is-sunday {
    color: #ff6b6b;
}

.bm-attendance-calendar th.is-saturday {
    color: #60a5fa;
}

.bm-attendance-calendar td {
    height: 112px;
    border: 1px solid #303030;
    background: #1f1f1f;
    vertical-align: top;
}

.bm-attendance-calendar td.is-empty {
    background: #111111;
}

.bm-attendance-calendar td.is-selected {
    background: #12383f;
}

.bm-attendance-day-link {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0;
    color: inherit;
}

.bm-attendance-day-mark {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bm-attendance-day-mark img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

.bm-attendance-day-num {
    position: absolute;
    top: 1px;
    left: 2px;
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    z-index: 2;
}

.bm-attendance-day-num.is-sunday {
    color: #ff6b6b;
}

.bm-attendance-day-num.is-saturday {
    color: #60a5fa;
}

.bm-attendance-day-count {
    position: absolute;
    right: 2px;
    bottom: 2px;
    text-align: right;
    font-size: 18px;
    font-weight: 700;
    color: #fbbf24;
    line-height: 1;
    z-index: 2;
}

.bm-attendance-guide-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bm-attendance-guide-time {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.bm-attendance-policy {
    margin-top: 14px;
    padding: 14px;
    border: 2px solid #dc2626;
    border-radius: 12px;
    background: #1a1a1a;
}

.bm-attendance-policy-table {
    width: 100%;
    border-collapse: collapse;
}

.bm-attendance-policy-table th,
.bm-attendance-policy-table td {
    padding: 10px 12px;
    border: 1px solid #333333;
    text-align: center;
}

.bm-attendance-policy-table th {
    background: #2a2a2a;
    color: #ffffff;
}

.bm-attendance-policy-table td {
    color: #ffffff;
}

.bm-attendance-form,
.bm-attendance-login-callout {
    display: flex;
    align-items: center;
    gap: 0;
}

.bm-attendance-input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #dc2626;
    border-right: 0;
    border-radius: 12px 0 0 12px;
    background: #111111;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.bm-attendance-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 154px;
    height: 52px;
    border: 1px solid #dc2626;
    border-radius: 0 12px 12px 0;
    background: #dc2626;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.bm-attendance-submit-btn:disabled {
    background: #666666;
    border-color: #666666;
    cursor: default;
}

.bm-attendance-submit-arrow {
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.bm-attendance-login-callout {
    justify-content: space-between;
    gap: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.bm-attendance-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 16px;
}

.bm-attendance-list-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.bm-attendance-list-table {
    width: 1120px;
    min-width: 1120px;
    max-width: none;
    border-collapse: collapse;
    table-layout: auto;
}

.bm-attendance-list-table th,
.bm-attendance-list-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #303030;
    color: #ffffff;
    font-size: 14px;
    white-space: nowrap;
}

.bm-attendance-list-table th {
    background: #083131;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.bm-attendance-list-table td {
    background: #1f1f1f;
}

.bm-attendance-list-table .td-num,
.bm-attendance-list-table .td-point {
    text-align: center;
    white-space: nowrap;
}

.bm-attendance-list-table .td-point {
    color: #f87171;
    font-weight: 800;
}

.bm-attendance-list-table .td-content {
    min-width: 320px;
    white-space: nowrap;
    word-break: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bm-attendance-member {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bm-attendance-writer {
    justify-content: flex-start;
    gap: 6px;
    max-width: 100%;
}

.bm-attendance-member-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.bm-attendance-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.bm-attendance-pagination .pg_page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #3d3d3d;
    background: #242424;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.bm-attendance-pagination .pg_page.current {
    background: #dc2626;
    border-color: #dc2626;
}

@media (max-width: 1100px) {
    .bm-attendance-hero-title {
        font-size: 28px;
    }

    .bm-attendance-hero-check {
        width: auto;
        height: 70px;
    }

    .bm-attendance-card {
        padding: 14px;
    }

    .bm-attendance-calendar-head {
        flex-direction: column;
        align-items: center;
    }

    .bm-attendance-calendar-titleline {
        gap: 8px;
    }

    .bm-attendance-calendar-date-full {
        font-size: 24px;
    }

    .bm-attendance-calendar-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bm-attendance-calendar-nav {
        width: 100%;
        justify-content: center;
    }

    .bm-attendance-nav-btn {
        flex: 1 1 calc(33.333% - 6px);
        min-width: 0;
    }

    .bm-attendance-input,
    .bm-attendance-submit-btn {
        font-size: 16px;
    }

    .bm-attendance-stat-chip {
        min-width: 0;
    }

    .bm-attendance-login-callout {
        flex-direction: column;
        align-items: stretch;
    }

    .bm-attendance-guide-top {
        justify-content: center;
        text-align: center;
    }

    .bm-attendance-guide-time {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .bm-attendance-policy-btn {
        margin-left: 0;
    }

    .bm-attendance-calendar-wrap,
    .bm-attendance-list-table-wrap {
        overflow-x: visible;
        overflow-y: visible;
        margin-right: 0;
        padding-bottom: 0;
    }

    .bm-attendance-calendar {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .bm-attendance-calendar th {
        height: 36px;
        font-size: 11px;
        padding: 0 2px;
    }

    .bm-attendance-week-full {
        display: none;
    }

    .bm-attendance-week-short {
        display: inline;
    }

    .bm-attendance-calendar td {
        position: relative;
        height: 76px;
    }

    .bm-attendance-day-link {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 0;
    }

    .bm-attendance-day-mark {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bm-attendance-day-mark img {
        max-width: 90% !important;
        max-height: 90% !important;
        width: 90% !important;
        height: auto !important;
        object-fit: contain !important;
        transform: none !important;
    }

    .bm-attendance-day-num {
        top: 0 !important;
        left: 0 !important;
        padding: 2px 4px;
        font-size: 12px;
        line-height: 1;
    }

    .bm-attendance-day-count {
        display: none;
    }

    .bm-attendance-list-head {
        flex-direction: column;
        align-items: flex-start;
        font-size: 14px;
    }

    .bm-attendance-list-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .bm-attendance-list-table th,
    .bm-attendance-list-table td {
        padding: 8px 4px;
        font-size: 11px;
        white-space: normal;
        word-break: break-word;
    }

    .bm-attendance-list-table th:nth-child(1),
    .bm-attendance-list-table td:nth-child(1) {
        width: 8%;
    }

    .bm-attendance-list-table th:nth-child(2),
    .bm-attendance-list-table td:nth-child(2) {
        width: 16%;
    }

    .bm-attendance-list-table th:nth-child(3),
    .bm-attendance-list-table td:nth-child(3) {
        width: 44%;
    }

    .bm-attendance-list-table th:nth-child(4),
    .bm-attendance-list-table td:nth-child(4) {
        display: none;
    }

    .bm-attendance-list-table th:nth-child(5),
    .bm-attendance-list-table td:nth-child(5) {
        width: 18%;
    }

    .bm-attendance-list-table th:nth-child(6),
    .bm-attendance-list-table td:nth-child(6) {
        width: 14%;
    }

    .bm-attendance-list-table .td-content {
        min-width: 0;
        white-space: normal;
        word-break: break-word;
        overflow: visible;
        text-overflow: clip;
    }

    .bm-attendance-member {
        gap: 4px;
        align-items: center;
    }

    .bm-attendance-writer {
        gap: 4px;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .bm-attendance-member-icon {
        width: 18px;
        height: 18px;
    }

    .bm-attendance-writer .bm-level-chip {
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        font-size: 10px;
    }

    .bm-attendance-writer .bm-writer-nick {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        word-break: break-all;
        line-height: 1.2;
        font-size: 10px;
    }

    .bm-attendance-pagination {
        gap: 4px;
    }

    .bm-attendance-pagination .pg_page {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .bm-attendance-calendar-stats {
        grid-template-columns: 1fr;
    }

    .bm-attendance-form {
        flex-direction: column;
        gap: 8px;
    }

    .bm-attendance-input {
        width: 100%;
        border-right: 1px solid #dc2626;
        border-radius: 12px;
        font-size: 15px;
    }

    .bm-attendance-submit-btn {
        width: 100%;
        min-width: 0;
        border-radius: 12px;
        font-size: 16px;
    }

    .bm-attendance-list-table th,
    .bm-attendance-list-table td {
        font-size: 10px;
        padding: 7px 3px;
    }

    .bm-attendance-day-num {
        font-size: 12px;
    }

    .bm-attendance-day-count {
        font-size: 11px;
    }
}

/* GGONGTA light attendance overrides */
.bm-attendance-page {
    color: #333333;
}

.bm-attendance-card,
.bm-attendance-hero,
.bm-attendance-stat-chip,
.bm-attendance-calendar td,
.bm-attendance-calendar td.is-empty,
.bm-attendance-calendar td.is-selected,
.bm-attendance-check-panel,
.bm-attendance-list,
.bm-attendance-ranking,
.bm-attendance-policy,
.bm-attendance-modal,
.bm-attendance-modal-content {
    background: #ffffff !important;
    border-color: #e0e0e0 !important;
    color: #333333 !important;
    box-shadow: none !important;
}

.bm-attendance-hero-title,
.bm-attendance-hero-title-text,
.bm-attendance-calendar-date-full,
.bm-attendance-stat-chip span,
.bm-attendance-calendar td,
.bm-attendance-day-link,
.bm-attendance-day-num,
.bm-attendance-guide-time,
.bm-attendance-login-callout,
.bm-attendance-list,
.bm-attendance-ranking,
.bm-attendance-policy,
.bm-attendance-list-table th,
.bm-attendance-list-table td,
.bm-attendance-list-table .td-content,
.bm-attendance-list-table .td-num,
.bm-attendance-list-table .td-point,
.bm-attendance-list-table .bm-writer-nick,
.bm-attendance-list-table .bm-writer-with-level,
.bm-attendance-list-table .bm-level-chip,
.bm-attendance-list-table .bm-level-icon-img {
    color: #333333 !important;
}

.bm-attendance-day-num.is-sunday {
    color: #ff6b6b !important;
}

.bm-attendance-day-num.is-saturday {
    color: #60a5fa !important;
}
.bm-attendance-hero-title-text > span,
.bm-attendance-stat-chip strong,
.bm-attendance-calendar-caption,
.bm-attendance-count,
.bm-attendance-point {
    color: #ff8c00 !important;
}

.bm-attendance-calendar th,
.bm-attendance-nav-btn,
.bm-attendance-policy-btn,
.bm-attendance-login-btn,
.bm-attendance-submit-btn {
    background: #ffa048 !important;
    border-color: #ffa048 !important;
    color: #ffffff !important;
}

.bm-attendance-calendar th {
    border-color: #e0e0e0 !important;
}

.bm-attendance-calendar td.is-selected,
.bm-attendance-calendar td:hover,
.bm-attendance-list-table tbody tr,
.bm-attendance-list-table tbody td {
    background: #fff7ef !important;
}

.bm-attendance-list-table tbody tr:hover td {
    background: #fff2e6 !important;
}
/* GGONGTA attendance history table fit overrides */
.bm-attendance-calendar td,
.bm-attendance-calendar td.is-selected,
.bm-attendance-calendar td:hover {
    background: #fff7ef !important;
}

.bm-attendance-list-table-wrap {
    overflow: visible !important;
}

.bm-attendance-list-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}

.bm-attendance-list-table th,
.bm-attendance-list-table td {
    display: table-cell !important;
    border-color: #e0e0e0 !important;
    color: #333333 !important;
    white-space: normal !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.bm-attendance-list-table th {
    background: #ffa048 !important;
    color: #ffffff !important;
}

.bm-attendance-list-table tbody tr,
.bm-attendance-list-table tbody td,
.bm-attendance-list-table tbody tr:hover td {
    background: #fff7ef !important;
}

.bm-attendance-list-table .td-content {
    min-width: 0 !important;
    white-space: normal !important;
    word-break: keep-all;
    overflow: visible !important;
    text-overflow: clip !important;
}

.bm-attendance-list-table .td-num,
.bm-attendance-list-table .td-point,
.bm-attendance-list-table .td-nick {
    white-space: normal !important;
}

.bm-attendance-list-table .bm-attendance-writer,
.bm-attendance-list-table .bm-writer-with-level {
    min-width: 0;
    flex-wrap: wrap;
}

.bm-attendance-list-table .bm-writer-nick {
    max-width: 100%;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.bm-attendance-list-table th:nth-child(1),
.bm-attendance-list-table td:nth-child(1) {
    width: 7%;
}

.bm-attendance-list-table th:nth-child(2),
.bm-attendance-list-table td:nth-child(2) {
    width: 14%;
}

.bm-attendance-list-table th:nth-child(3),
.bm-attendance-list-table td:nth-child(3) {
    width: 20%;
}

.bm-attendance-list-table th:nth-child(4),
.bm-attendance-list-table td:nth-child(4) {
    width: 36%;
}

.bm-attendance-list-table th:nth-child(5),
.bm-attendance-list-table td:nth-child(5) {
    width: 12%;
}

.bm-attendance-list-table th:nth-child(6),
.bm-attendance-list-table td:nth-child(6) {
    width: 11%;
}

@media (max-width: 767px) {
    .bm-attendance-list-table th:nth-child(4),
    .bm-attendance-list-table td:nth-child(4) {
        display: none !important;
    }

    .bm-attendance-list-table th:nth-child(1),
    .bm-attendance-list-table td:nth-child(1) {
        width: 10%;
    }

    .bm-attendance-list-table th:nth-child(2),
    .bm-attendance-list-table td:nth-child(2) {
        width: 18%;
        white-space: nowrap !important;
        word-break: normal;
        overflow-wrap: normal;
    }

    .bm-attendance-list-table th:nth-child(3),
    .bm-attendance-list-table td:nth-child(3) {
        width: 34%;
    }

    .bm-attendance-list-table th:nth-child(5),
    .bm-attendance-list-table td:nth-child(5) {
        width: 20%;
    }

    .bm-attendance-list-table th:nth-child(6),
    .bm-attendance-list-table td:nth-child(6) {
        width: 18%;
    }

    .bm-attendance-list-table .td-nick .bm-level-chip,
    .bm-attendance-list-table .td-nick .bm-level-icon-img {
        display: none !important;
    }

    .bm-attendance-list-table .td-nick .bm-attendance-writer,
    .bm-attendance-list-table .td-nick .bm-writer-with-level {
        display: block;
    }

    .bm-attendance-list-table .td-nick .bm-writer-nick {
        display: block;
        max-width: 100%;
    }
}

/* GGONGTA attendance visibility refresh */
.bm-attendance-page {
    gap: 14px;
    padding: 14px;
    border: 1px solid #FEB16E;
    border-radius: 18px;
    background: linear-gradient(180deg, #FFF8EF 0%, #FFF1E1 100%);
}

.bm-attendance-card,
.bm-attendance-hero,
.bm-attendance-stat-chip,
.bm-attendance-policy {
    border-color: #FEB16E !important;
    box-shadow: 0 10px 24px rgba(244, 122, 12, 0.10) !important;
}

.bm-attendance-card {
    background: #FFFFFF !important;
}

.bm-attendance-hero {
    border: 0 !important;
    background: linear-gradient(135deg, #FFA048 0%, #FEB16E 100%) !important;
}

.bm-attendance-hero-title,
.bm-attendance-hero-title-text,
.bm-attendance-hero-title-text > span {
    color: #FFFFFF !important;
    text-shadow: 0 2px 6px rgba(123, 60, 0, 0.20);
}

.bm-attendance-calendar-card {
    background: #FFFFFF !important;
}

.bm-attendance-calendar-date-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    background: #FFA048;
    color: #FFFFFF !important;
    box-shadow: inset 0 -2px 0 rgba(123, 60, 0, 0.12);
}

.bm-attendance-calendar-wrap {
    border: 2px solid #FEB16E;
    border-radius: 14px;
    background: #FFFFFF;
}

.bm-attendance-calendar {
    border-collapse: collapse;
    border-spacing: 0;
    background: #FFFFFF;
}

.bm-attendance-calendar th {
    background: #FFA048 !important;
    border: 1px solid #FEB16E !important;
    border-color: #FEB16E !important;
    color: #FFFFFF !important;
    box-shadow: none;
}

.bm-attendance-calendar th.is-sunday {
    background: #F47A0C !important;
    color: #FFFFFF !important;
}

.bm-attendance-calendar th.is-saturday {
    background: #FD8C25 !important;
    color: #FFFFFF !important;
}

.bm-attendance-calendar td,
.bm-attendance-calendar td:hover {
    position: relative;
    border: 1px solid #FEB16E !important;
    border-color: #FEB16E !important;
    background: #FFFFFF !important;
    box-shadow: none;
}

.bm-attendance-calendar td.is-empty {
    background: #FFFFFF !important;
}

.bm-attendance-calendar td.is-selected {
    background: #FFFFFF !important;
    box-shadow: none;
}

.bm-attendance-calendar td.is-selected::after {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: 4;
    border: 2px solid #FFA048;
    pointer-events: none;
    box-sizing: border-box;
}

.bm-attendance-day-link {
    z-index: 1;
    color: #2A1F16 !important;
    transition: background 0.16s ease, box-shadow 0.16s ease;
}

.bm-attendance-day-link:hover {
    background: #FFFFFF;
    box-shadow: inset 0 0 0 2px #FEB16E;
}

.bm-attendance-day-num {
    top: 7px;
    left: 7px;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border: 1px solid #FEB16E;
    border-radius: 999px;
    background: #FFFFFF;
    color: #2A1F16 !important;
    font-size: 16px;
    line-height: 26px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(244, 122, 12, 0.12);
}

.bm-attendance-day-num.is-sunday,
.bm-attendance-day-num.is-saturday {
    color: #F47A0C !important;
}

.bm-attendance-day-count {
    right: 7px;
    bottom: 7px;
    min-width: 30px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #FFA048;
    color: #FFFFFF !important;
    font-size: 14px;
    line-height: 1;
}

.bm-attendance-guide-card,
.bm-attendance-submit-card,
.bm-attendance-list-card {
    background: #FFFFFF !important;
}

.bm-attendance-guide-time {
    padding: 10px 14px;
    border: 1px solid #FEB16E;
    border-radius: 12px;
    background: #FFF4E7;
    color: #6F3D10 !important;
}

.bm-attendance-nav-btn,
.bm-attendance-policy-btn,
.bm-attendance-login-btn,
.bm-attendance-submit-btn,
.bm-attendance-pagination .pg_page.current {
    background: #FFA048 !important;
    border-color: #FFA048 !important;
    color: #FFFFFF !important;
}

.bm-attendance-policy-btn:hover,
.bm-attendance-login-btn:hover,
.bm-attendance-submit-btn:hover,
.bm-attendance-pagination .pg_page:hover {
    background: #F47A0C !important;
    border-color: #F47A0C !important;
    color: #FFFFFF !important;
}

.bm-attendance-input {
    border-color: #FEB16E !important;
    background: #FFFFFF !important;
    color: #2A1F16 !important;
}

.bm-attendance-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(254, 177, 110, 0.28);
}

.bm-attendance-list-table th {
    background: #FFA048 !important;
    border-color: #FEB16E !important;
    color: #FFFFFF !important;
}

.bm-attendance-list-table th,
.bm-attendance-list-table td {
    border-bottom-color: #FEB16E !important;
}

.bm-attendance-list-table tbody tr,
.bm-attendance-list-table tbody td {
    background: #FFFFFF !important;
}

.bm-attendance-list-table tbody tr:nth-child(even) td {
    background: #FFF7EF !important;
}

.bm-attendance-list-table tbody tr:hover td {
    background: #FFEAD0 !important;
}

.bm-attendance-list-table .td-point {
    color: #F47A0C !important;
}

.bm-attendance-pagination .pg_page {
    border-color: #FEB16E !important;
    background: #FFFFFF !important;
    color: #6F3D10 !important;
}

@media (max-width: 767px) {
    .bm-attendance-page {
        padding: 10px;
        border-radius: 14px;
    }

    .bm-attendance-calendar-date-full {
        min-height: 40px;
        padding: 0 16px;
        font-size: 20px;
    }

    .bm-attendance-calendar-wrap {
        border-width: 1px;
        border-radius: 10px;
    }

    .bm-attendance-calendar td {
        position: relative;
        height: 76px;
    }

    .bm-attendance-day-link {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .bm-attendance-day-num {
        top: 0 !important;
        left: 0 !important;
        min-width: 18px;
        height: 18px;
        padding: 0 2px;
        font-size: 10px;
        line-height: 16px;
    }

    .bm-attendance-day-count {
        display: none !important;
    }

    .bm-attendance-day-mark {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .bm-attendance-day-mark img {
        max-width: 90% !important;
        max-height: 90% !important;
        width: 90% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
    }
}

/* Attendance calendar readability/design upgrade */
.bm-attendance-calendar-card {
    border: 2px solid #f5c08e !important;
    box-shadow: 0 10px 28px rgba(244, 122, 12, 0.1) !important;
}

.bm-attendance-calendar-head {
    margin-bottom: 14px;
}

.bm-attendance-calendar-date-full {
    font-weight: 900;
    letter-spacing: 0;
}

.bm-attendance-calendar-wrap {
    overflow: hidden;
    border: 1px solid #f6c796;
    border-radius: 16px;
    background: #fff;
}

.bm-attendance-calendar {
    border-collapse: collapse;
    border-spacing: 0;
}

.bm-attendance-calendar th,
.bm-attendance-calendar td,
.bm-attendance-calendar td.is-empty,
.bm-attendance-calendar td.is-selected,
.bm-attendance-calendar td:hover {
    border: 1px solid #f6c796 !important;
    box-sizing: border-box;
}

.bm-attendance-calendar th {
    height: 44px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
}

.bm-attendance-calendar td {
    height: 108px;
    background: #fffdfa !important;
    transition: background-color 0.14s ease;
}

.bm-attendance-calendar td:hover {
    background: #fff3e6 !important;
}

.bm-attendance-calendar td.is-empty {
    background: #fff8f1 !important;
}

.bm-attendance-calendar td.is-selected {
    background: #fff0df !important;
}

.bm-attendance-calendar td.is-selected::after {
    inset: 3px;
    border: 2px solid #f47a0c;
    border-radius: 10px;
}

.bm-attendance-day-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0 !important;
}

.bm-attendance-day-num {
    position: absolute;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    z-index: 3;
    min-width: 28px;
    height: 28px;
    border-color: #f8d4af;
    color: #513723 !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 26px;
    box-shadow: 0 2px 10px rgba(244, 122, 12, 0.1);
}

.bm-attendance-day-num.is-sunday {
    color: #ef4444 !important;
}

.bm-attendance-day-num.is-saturday {
    color: #2563eb !important;
}

.bm-attendance-day-count {
    position: absolute;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    z-index: 3;
    min-width: 32px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f47a0c;
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(244, 122, 12, 0.22);
}

.bm-attendance-day-mark img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    transform: none !important;
    display: block !important;
    opacity: 0.94;
}

@media (max-width: 1100px) {
    .bm-attendance-calendar th {
        height: 38px;
        font-size: 12px;
    }

    .bm-attendance-calendar td {
        position: relative;
        height: 82px;
    }

    .bm-attendance-day-link {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .bm-attendance-day-num {
        top: 0 !important;
        left: 0 !important;
        min-width: 22px;
        height: 22px;
        padding: 0 4px;
        font-size: 12px;
        line-height: 20px;
    }

    .bm-attendance-day-count {
        display: none !important;
    }

    .bm-attendance-day-mark {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .bm-attendance-day-mark img {
        max-width: 90% !important;
        max-height: 90% !important;
        width: 90% !important;
        height: auto !important;
        transform: none !important;
        object-fit: contain !important;
        display: block !important;
    }
}
