/* ========== ATTENDANCE SHEET MAKER SCOPED STYLES ========== */
    .asm-wrapper * {
        font-family: 'Inter', sans-serif;
    }

    .asm-wrapper {
        --asm-orange: #ff7b02;
        --asm-green: #10ad4a;
        --asm-dark: #1c2133;
        --asm-light: #f8f9fa;
        --asm-white: #ffffff;
        --asm-gray: #6c757d;
        --asm-light-gray: #e9ecef;
        --asm-border: #dee2e6;
    }

    /* Hero Section */
    .asm-hero {
        background: linear-gradient(135deg, var(--asm-dark) 0%, #2a3352 50%, var(--asm-dark) 100%);
        padding: 60px 0 50px;
        position: relative;
        overflow: hidden;
    }

    .asm-hero::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(255,123,2,0.15) 0%, transparent 70%);
        border-radius: 50%;
    }

    .asm-hero::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -10%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(16,173,74,0.1) 0%, transparent 70%);
        border-radius: 50%;
    }

    .asm-hero h1 {
        color: var(--asm-white);
        font-weight: 800;
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .asm-hero h1 span {
        color: var(--asm-orange);
    }

    .asm-hero p {
        color: rgba(255,255,255,0.8);
        font-size: 1.1rem;
        max-width: 700px;
        margin: 0 auto;
    }

    .asm-rating-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(255,255,255,0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.15);
        padding: 8px 20px;
        border-radius: 50px;
        color: var(--asm-white);
        font-size: 0.9rem;
        margin-top: 20px;
    }

    .asm-rating-badge .bi-star-fill {
        color: #ffc107;
    }

    /* Main Tool Area */
    .asm-main {
        padding: 40px 0;
        background: var(--asm-light);
        min-height: 600px;
    }

    /* Ad Spaces */
    .asm-ad-space {
        background: var(--asm-white);
        border: 2px dashed var(--asm-border);
        border-radius: 12px;
        min-height: 600px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--asm-gray);
        font-size: 0.85rem;
        text-align: center;
        padding: 20px;
        position: sticky;
        top: 20px;
    }

    .asm-ad-space i {
        font-size: 2rem;
        color: var(--asm-border);
        display: block;
        margin-bottom: 10px;
    }

    /* Tool Card */
    .asm-tool-card {
        background: var(--asm-white);
        border-radius: 16px;
        box-shadow: 0 4px 24px rgba(28,33,51,0.08);
        padding: 30px;
        border: 1px solid var(--asm-light-gray);
    }

    .asm-section-title {
        font-weight: 700;
        color: var(--asm-dark);
        font-size: 1.3rem;
        margin-bottom: 25px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .asm-section-title i {
        color: var(--asm-orange);
        font-size: 1.4rem;
    }

    /* Form Controls */
    .asm-form-label {
        font-weight: 600;
        color: var(--asm-dark);
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .asm-form-control {
        border: 2px solid var(--asm-light-gray) !important;
        border-radius: 10px !important;
        padding: 10px 15px !important;
        font-size: 0.95rem !important;
        transition: all 0.3s ease !important;
        color: var(--asm-dark) !important;
    }

    .asm-form-control:focus {
        border-color: var(--asm-orange) !important;
        box-shadow: 0 0 0 3px rgba(255,123,2,0.15) !important;
    }

    .asm-form-select {
        border: 2px solid var(--asm-light-gray) !important;
        border-radius: 10px !important;
        padding: 10px 15px !important;
        font-size: 0.95rem !important;
        transition: all 0.3s ease !important;
        color: var(--asm-dark) !important;
        cursor: pointer;
    }

    .asm-form-select:focus {
        border-color: var(--asm-orange) !important;
        box-shadow: 0 0 0 3px rgba(255,123,2,0.15) !important;
    }

    /* Names Container */
    .asm-names-container {
        max-height: 300px;
        overflow-y: auto;
        padding-right: 5px;
    }

    .asm-names-container::-webkit-scrollbar { width: 6px; }
    .asm-names-container::-webkit-scrollbar-track { background: var(--asm-light); border-radius: 3px; }
    .asm-names-container::-webkit-scrollbar-thumb { background: var(--asm-orange); border-radius: 3px; }

    .asm-name-row {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
        animation: asmSlideIn 0.3s ease;
    }

    @keyframes asmSlideIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .asm-name-number {
        background: var(--asm-dark);
        color: var(--asm-white);
        min-width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .asm-name-row input { flex: 1; }

    .asm-btn-remove {
        background: #dc3545;
        color: white;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .asm-btn-remove:hover {
        background: #bb2d3b;
        transform: scale(1.05);
    }

    /* Buttons */
    .asm-btn-primary {
        background: var(--asm-orange) !important;
        color: var(--asm-white) !important;
        border: none !important;
        padding: 12px 28px;
        border-radius: 10px !important;
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
    }

    .asm-btn-primary:hover {
        background: #e86e00 !important;
        color: var(--asm-white) !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255,123,2,0.35);
    }

    .asm-btn-secondary {
        background: var(--asm-dark) !important;
        color: var(--asm-white) !important;
        border: none !important;
        padding: 12px 28px;
        border-radius: 10px !important;
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
    }

    .asm-btn-secondary:hover {
        background: #2a3352 !important;
        color: var(--asm-white) !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(28,33,51,0.35);
    }

    .asm-btn-success {
        background: var(--asm-green) !important;
        color: var(--asm-white) !important;
        border: none !important;
        padding: 12px 28px;
        border-radius: 10px !important;
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
    }

    .asm-btn-success:hover {
        background: #0e9640 !important;
        color: var(--asm-white) !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(16,173,74,0.35);
    }

    .asm-btn-outline {
        background: transparent;
        color: var(--asm-orange);
        border: 2px solid var(--asm-orange);
        padding: 10px 22px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
    }

    .asm-btn-outline:hover {
        background: var(--asm-orange);
        color: var(--asm-white);
    }

    .asm-btn-sm { padding: 8px 16px; font-size: 0.85rem; }

    /* Generated Sheet */
    .asm-sheet-wrapper {
        display: none;
        margin-top: 30px;
    }

    .asm-sheet-wrapper.active {
        display: block;
        animation: asmFadeIn 0.5s ease;
    }

    @keyframes asmFadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .asm-sheet-header {
        background: linear-gradient(135deg, var(--asm-dark), #2a3352);
        color: var(--asm-white);
        padding: 20px 25px;
        border-radius: 12px 12px 0 0;
        text-align: center;
    }

    .asm-sheet-header h3 {
        font-weight: 700;
        margin-bottom: 5px;
        font-size: 1.3rem;
    }

    .asm-sheet-header p {
        margin: 0;
        opacity: 0.8;
        font-size: 0.95rem;
    }

    .asm-table-wrapper {
        overflow-x: auto;
        border: 1px solid var(--asm-border);
        border-top: none;
        border-radius: 0 0 12px 12px;
        background: var(--asm-white);
    }

    .asm-table-wrapper::-webkit-scrollbar { height: 8px; }
    .asm-table-wrapper::-webkit-scrollbar-track { background: var(--asm-light); }
    .asm-table-wrapper::-webkit-scrollbar-thumb { background: var(--asm-orange); border-radius: 4px; }

    .asm-attendance-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.8rem;
        min-width: 900px;
    }

    .asm-attendance-table thead th {
        background: var(--asm-dark);
        color: var(--asm-white);
        padding: 10px 6px;
        text-align: center;
        font-weight: 600;
        white-space: nowrap;
        border: 1px solid rgba(255,255,255,0.1);
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .asm-attendance-table thead th.asm-day-sun { background: #dc3545; }

    .asm-attendance-table thead th:first-child,
    .asm-attendance-table thead th:nth-child(2) {
        position: sticky;
        z-index: 3;
    }

    .asm-attendance-table thead th:first-child { left: 0; min-width: 45px; }
    .asm-attendance-table thead th:nth-child(2) { left: 45px; min-width: 140px; }

    .asm-attendance-table tbody td {
        padding: 8px 6px;
        text-align: center;
        border: 1px solid var(--asm-border);
        transition: all 0.2s ease;
        user-select: none;
        min-width: 36px;
        font-weight: 500;
    }

    .asm-attendance-table tbody td:first-child {
        background: var(--asm-light);
        font-weight: 700;
        color: var(--asm-dark);
        position: sticky;
        left: 0;
        z-index: 1;
    }

    .asm-attendance-table tbody td:nth-child(2) {
        background: var(--asm-white);
        font-weight: 600;
        color: var(--asm-dark);
        text-align: left;
        position: sticky;
        left: 45px;
        z-index: 1;
        white-space: nowrap;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .asm-attendance-table tbody td.asm-sunday-col { background: #fff5f5; color: #dc3545; }
    .asm-attendance-table tbody td.asm-clickable { cursor: pointer; }
    .asm-attendance-table tbody td.asm-clickable:hover { background: rgba(255,123,2,0.1); }

    .asm-attendance-table tbody td.asm-present { background: #d4edda; color: #155724; font-weight: 700; }
    .asm-attendance-table tbody td.asm-absent { background: #f8d7da; color: #721c24; font-weight: 700; }
    .asm-attendance-table tbody td.asm-leave { background: #fff3cd; color: #856404; font-weight: 700; }
    .asm-attendance-table tbody td.asm-halfday { background: #d1ecf1; color: #0c5460; font-weight: 700; }

    .asm-attendance-table thead th.asm-summary-col { background: var(--asm-orange); }

    .asm-attendance-table tbody td.asm-summary-td {
        font-weight: 700;
        background: #fff8f0;
        color: var(--asm-dark);
    }

    /* Legend */
    .asm-legend {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 15px;
        padding: 15px;
        background: var(--asm-light);
        border-radius: 10px;
    }

    .asm-legend-item {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.85rem;
        font-weight: 500;
    }

    .asm-legend-color {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 0.75rem;
    }

    .asm-lg-present { background: #d4edda; color: #155724; }
    .asm-lg-absent { background: #f8d7da; color: #721c24; }
    .asm-lg-leave { background: #fff3cd; color: #856404; }
    .asm-lg-halfday { background: #d1ecf1; color: #0c5460; }
    .asm-lg-sunday { background: #fff5f5; color: #dc3545; }

    .asm-action-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 20px;
        padding: 20px;
        background: var(--asm-light);
        border-radius: 12px;
    }

    /* ========== FIXED TOAST NOTIFICATION ========== */
    .asm-toast-container {
        position: fixed;
        top: 25px;
        right: 25px;
        z-index: 1090;
        display: flex;
        flex-direction: column;
        gap: 12px;
        pointer-events: none;
    }

    .asm-toast {
        pointer-events: auto;
        background: var(--asm-dark, #1c2133);
        color: #fff;
        padding: 16px 22px 16px 18px;
        border-radius: 14px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.25);
        display: flex;
        align-items: center;
        gap: 14px;
        min-width: 320px;
        max-width: 460px;
        animation: asmToastSlideIn 0.45s cubic-bezier(0.23,1,0.32,1);
        position: relative;
        overflow: hidden;
    }

    .asm-toast::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 5px;
    }

    .asm-toast.asm-toast-success::before { background: #10ad4a; }
    .asm-toast.asm-toast-error::before { background: #dc3545; }
    .asm-toast.asm-toast-info::before { background: #ff7b02; }

    .asm-toast.asm-toast-hide {
        animation: asmToastSlideOut 0.4s cubic-bezier(0.23,1,0.32,1) forwards;
    }

    @keyframes asmToastSlideIn {
        from { opacity: 0; transform: translateX(120%) scale(0.8); }
        to { opacity: 1; transform: translateX(0) scale(1); }
    }

    @keyframes asmToastSlideOut {
        from { opacity: 1; transform: translateX(0) scale(1); }
        to { opacity: 0; transform: translateX(120%) scale(0.8); }
    }

    .asm-toast-icon {
        font-size: 1.4rem;
        flex-shrink: 0;
    }

    .asm-toast-success .asm-toast-icon { color: #10ad4a; }
    .asm-toast-error .asm-toast-icon { color: #dc3545; }
    .asm-toast-info .asm-toast-icon { color: #ff7b02; }

    .asm-toast-msg {
        flex: 1;
        font-size: 0.92rem;
        font-weight: 500;
        line-height: 1.4;
    }

    .asm-toast-close {
        background: rgba(255,255,255,0.15);
        border: none;
        color: rgba(255,255,255,0.7);
        cursor: pointer;
        font-size: 0.95rem;
        padding: 4px 8px;
        border-radius: 6px;
        transition: all 0.2s;
        flex-shrink: 0;
    }

    .asm-toast-close:hover {
        background: rgba(255,255,255,0.25);
        color: #fff;
    }

    /* Toast Progress Bar */
    .asm-toast-progress {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 3px;
        border-radius: 0 0 14px 14px;
        animation: asmToastProgress 4s linear forwards;
    }

    .asm-toast-success .asm-toast-progress { background: #10ad4a; }
    .asm-toast-error .asm-toast-progress { background: #dc3545; }
    .asm-toast-info .asm-toast-progress { background: #ff7b02; }

    @keyframes asmToastProgress {
        from { width: 100%; }
        to { width: 0%; }
    }

    /* ========== FIXED MODAL POPUP ========== */
    .asm-custom-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(28,33,51,0.6);
        backdrop-filter: blur(4px);
        z-index: 1085;
        display: none;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .asm-custom-overlay.asm-show {
        display: flex;
        opacity: 1;
    }

    .asm-custom-modal {
        background: #fff;
        border-radius: 18px;
        width: 90%;
        max-width: 440px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.25);
        transform: scale(0.8) translateY(30px);
        transition: transform 0.35s cubic-bezier(0.23,1,0.32,1);
        overflow: hidden;
    }

    .asm-custom-overlay.asm-show .asm-custom-modal {
        transform: scale(1) translateY(0);
    }

    .asm-custom-modal-header {
        background: linear-gradient(135deg, #1c2133, #2a3352);
        color: #fff;
        padding: 20px 24px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .asm-custom-modal-header i {
        font-size: 1.5rem;
        color: #ff7b02;
    }

    .asm-custom-modal-header h5 {
        margin: 0;
        font-weight: 700;
        font-size: 1.1rem;
    }

    .asm-custom-modal-header .asm-modal-close-x {
        margin-left: auto;
        background: rgba(255,255,255,0.15);
        border: none;
        color: #fff;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s;
        font-size: 1rem;
    }

    .asm-custom-modal-header .asm-modal-close-x:hover {
        background: rgba(255,255,255,0.3);
    }

    .asm-custom-modal-body {
        padding: 28px 24px;
        font-size: 1rem;
        color: #4a4a4a;
        line-height: 1.6;
    }

    .asm-custom-modal-body i.asm-warn-icon {
        font-size: 2.5rem;
        color: #ff7b02;
        display: block;
        text-align: center;
        margin-bottom: 15px;
    }

    .asm-custom-modal-footer {
        padding: 16px 24px 22px;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        border-top: 1px solid #e9ecef;
    }

    .asm-modal-cancel-btn {
        background: #e9ecef;
        color: #1c2133;
        border: none;
        padding: 10px 24px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.2s;
    }

    .asm-modal-cancel-btn:hover {
        background: #dee2e6;
    }

    .asm-modal-confirm-btn {
        background: #ff7b02;
        color: #fff;
        border: none;
        padding: 10px 24px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.2s;
    }

    .asm-modal-confirm-btn:hover {
        background: #e86e00;
        transform: translateY(-1px);
    }

    /* Features Section */
    .asm-features {
        padding: 60px 0;
        background: var(--asm-white);
    }

    .asm-features-title {
        font-weight: 800;
        color: var(--asm-dark);
        font-size: 2rem;
        text-align: center;
        margin-bottom: 40px;
    }

    .asm-features-title span { color: var(--asm-orange); }

    .asm-feature-card {
        background: var(--asm-light);
        border-radius: 14px;
        padding: 30px;
        text-align: center;
        height: 100%;
        transition: all 0.3s ease;
        border: 1px solid transparent;
    }

    .asm-feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(28,33,51,0.1);
        border-color: var(--asm-orange);
    }

    .asm-feature-icon {
        width: 65px;
        height: 65px;
        background: linear-gradient(135deg, var(--asm-orange), #ff9a3c);
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        font-size: 1.6rem;
        color: var(--asm-white);
    }

    .asm-feature-card h5 { font-weight: 700; color: var(--asm-dark); margin-bottom: 10px; }
    .asm-feature-card p { color: var(--asm-gray); font-size: 0.9rem; margin: 0; }

    /* How To */
    .asm-howto { padding: 60px 0; background: var(--asm-light); }

    .asm-howto-title {
        font-weight: 800;
        color: var(--asm-dark);
        font-size: 2rem;
        text-align: center;
        margin-bottom: 40px;
    }

    .asm-howto-title span { color: var(--asm-green); }

    .asm-step-card { text-align: center; padding: 25px 20px; }

    .asm-step-number {
        width: 55px;
        height: 55px;
        background: linear-gradient(135deg, var(--asm-dark), #2a3352);
        color: var(--asm-orange);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 1.3rem;
        margin: 0 auto 15px;
        border: 3px solid var(--asm-orange);
    }

    .asm-step-card h5 { font-weight: 700; color: var(--asm-dark); margin-bottom: 8px; }
    .asm-step-card p { color: var(--asm-gray); font-size: 0.9rem; margin: 0; }

    /* Content */
    .asm-content { padding: 60px 0; background: var(--asm-white); }

    .asm-content h2 { font-weight: 800; color: var(--asm-dark); font-size: 1.8rem; margin-bottom: 20px; }
    .asm-content h2 span { color: var(--asm-orange); }
    .asm-content h3 { font-weight: 700; color: var(--asm-dark); font-size: 1.3rem; margin-top: 30px; margin-bottom: 12px; }
    .asm-content p, .asm-content li { color: #4a4a4a; font-size: 1rem; line-height: 1.8; }
    .asm-content ul { padding-left: 20px; }
    .asm-content ul li { margin-bottom: 8px; }
    .asm-content ul li::marker { color: var(--asm-orange); }

    /* FAQ */
    .asm-faq { padding: 60px 0; background: var(--asm-light); }

    .asm-faq-title {
        font-weight: 800;
        color: var(--asm-dark);
        font-size: 2rem;
        text-align: center;
        margin-bottom: 40px;
    }

    .asm-faq-title span { color: var(--asm-orange); }

    .asm-accordion .accordion-item {
        border: 1px solid var(--asm-light-gray);
        border-radius: 12px !important;
        margin-bottom: 12px;
        overflow: hidden;
    }

    .asm-accordion .accordion-button {
        font-weight: 600;
        color: var(--asm-dark);
        font-size: 1rem;
        padding: 18px 24px;
        background: var(--asm-white);
    }

    .asm-accordion .accordion-button:not(.collapsed) {
        background: var(--asm-white);
        color: var(--asm-orange);
        box-shadow: none;
    }

    .asm-accordion .accordion-button:focus { box-shadow: none; }

    .asm-accordion .accordion-button::after {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff7b02'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    }

    .asm-accordion .accordion-body { color: var(--asm-gray); line-height: 1.7; padding: 0 24px 20px; }

    /* ========== PRINT STYLES - COMPLETELY FIXED ========== */
    @media print {
        /* Hide everything outside printable area */
        body > *:not(#asmPrintArea) {
            display: none !important;
        }

        .asm-wrapper, .asm-hero, .asm-main, .asm-features,
        .asm-howto, .asm-content, .asm-faq, .asm-ad-space,
        .asm-action-bar, .asm-legend, .asm-toast-container,
        .asm-custom-overlay, .asm-rating-badge {
            display: none !important;
        }

        #asmPrintArea {
            display: block !important;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 99999;
            background: #fff;
            padding: 15px;
        }

        #asmPrintArea .asm-print-header {
            text-align: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #1c2133;
        }

        #asmPrintArea .asm-print-header h2 {
            font-size: 18pt;
            font-weight: 800;
            color: #1c2133;
            margin: 0 0 5px;
        }

        #asmPrintArea .asm-print-header p {
            font-size: 12pt;
            color: #555;
            margin: 0;
        }

        #asmPrintArea table {
            width: 100%;
            border-collapse: collapse;
            font-size: 7pt;
        }

        #asmPrintArea table th {
            background: #1c2133 !important;
            color: #fff !important;
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
            padding: 4px 3px;
            text-align: center;
            border: 1px solid #333;
            font-weight: 700;
        }

        #asmPrintArea table th.asm-day-sun {
            background: #dc3545 !important;
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }

        #asmPrintArea table th.asm-summary-col {
            background: #ff7b02 !important;
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }

        #asmPrintArea table td {
            padding: 4px 3px;
            text-align: center;
            border: 1px solid #ccc;
            font-weight: 500;
        }

        #asmPrintArea table td:first-child {
            font-weight: 700;
            background: #f0f0f0 !important;
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }

        #asmPrintArea table td:nth-child(2) {
            text-align: left;
            font-weight: 600;
        }

        #asmPrintArea table td.asm-present {
            background: #d4edda !important;
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }

        #asmPrintArea table td.asm-absent {
            background: #f8d7da !important;
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }

        #asmPrintArea table td.asm-leave {
            background: #fff3cd !important;
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }

        #asmPrintArea table td.asm-halfday {
            background: #d1ecf1 !important;
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }

        #asmPrintArea table td.asm-sunday-col {
            background: #fff5f5 !important;
            color: #dc3545;
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }

        #asmPrintArea table td.asm-summary-td {
            background: #fff8f0 !important;
            font-weight: 700;
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }

        #asmPrintArea .asm-print-legend {
            margin-top: 10px;
            display: flex;
            gap: 20px;
            font-size: 8pt;
            justify-content: center;
        }

        #asmPrintArea .asm-print-legend span {
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        #asmPrintArea .asm-print-footer {
            margin-top: 15px;
            padding-top: 10px;
            border-top: 1px solid #ccc;
            font-size: 8pt;
            color: #999;
            text-align: center;
        }

        @page {
            size: landscape;
            margin: 10mm;
        }
    }

    /* Responsive */
    @media (max-width: 991px) {
        .asm-ad-space { display: none; }
    }

    @media (max-width: 768px) {
        .asm-hero h1 { font-size: 1.8rem; }
        .asm-tool-card { padding: 20px; }
        .asm-action-bar { justify-content: center; }
        .asm-features-title, .asm-howto-title, .asm-faq-title { font-size: 1.5rem; }
        .asm-content h2 { font-size: 1.4rem; }
        .asm-toast { min-width: 280px; max-width: 350px; }
    }

    @media (max-width: 480px) {
        .asm-toast { min-width: 260px; max-width: calc(100vw - 40px); font-size: 0.85rem; padding: 12px 14px; }
    }