/* ==========================================================================
   1. Core Fonts & Baseline Reset
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap');

* {
    font-family: "Signika Negative", sans-serif;
    font-size: 15px;
    outline: none !important;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden; /* Changed from scroll to avoid broken horizontal layout tracking */
    background-color: #f4f6f9;
}

/* Preserve Pe Icon 7 Stroke font */
[class^="pe-7s-"],
[class*=" pe-7s-"] {
    font-family: "Pe-icon-7-stroke" !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
}

/* ==========================================================================
   2. Modern Split-Screen Authentication Layout (Login & Register Panels)
   ========================================================================== */
.auth-container {
    min-height: 100vh;
}

.auth-bg {
    background: linear-gradient(135deg, #0d6efd 0%, #0a4baf 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

.auth-form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    background: #fff;
}

/* Form Input Element Focus Smoothness */
.form-control:focus, 
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Tracking / letter spacing configuration */
.tracking-wider {
    letter-spacing: 0.05em;
}

/* Responsive Overrides for Authentication Screens */
@media (max-width: 768px) {
    .auth-bg {
        padding: 2rem;
        min-height: 25vh;
    }
    .auth-form-container {
        padding: 2rem;
    }
}

/* ==========================================================================
   3. Navigation Bar & Branding Components
   ========================================================================== */
.navbar-nav > li > a {
    text-transform: uppercase;
    font-size: 12px;
    margin-right: 20px;
    color: #fff;
}

.navbar-toggler {
    padding: .20rem .50rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid white;
}

.nav-link {
    color: #fff !important;
}

.wrapper {
    width: 100%;
    position: absolute;
    height: 100%;
    background-color: #000;
    clip-path: polygon(81% 0, 100% 0, 100% 50%, 100% 100%, 71% 100%);
    transition: 1s all;
}

.navbar-brand {
    color: #fff;
    font-family: 'Inter', sans-serif;
    margin-bottom: 4px;
    font-size: 27px;
}

.navbar-red:hover .wrapper {
    clip-path: polygon(81% 0, 100% 0, 100% 50%, 100% 100%, 65% 100%);
}

.navbar-brand:hover {
    color: #fff;  
}

.navbar-red {
    background-color: cornflowerblue;
    color: #fff;
}

.all-show {
    z-index: 10;
}

/* ==========================================================================
   4. Tables & Data Display
   ========================================================================== */
table {
    table-layout: fixed;
    width: 100%;
}

td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.table th, 
.table td {
    text-transform: uppercase;
    font-size: 13px;
    word-wrap: break-word;
}

@media (max-width: 767.98px) {
    .table {
        table-layout: auto !important;
    }
    .table th, 
    .table td {
        text-transform: uppercase;
        font-size: 13px;
    }
}

/* ==========================================================================
   5. General Layout Helpers & UI Blocks
   ========================================================================== */
.back-img {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    opacity: .3;
}

.main-wrapper {
    margin: auto;
    padding-top: 20px;
    height: calc(100% - 80px); /* Corrected calculate keyword error */
}

.hidden {
    display: none !important;
}

.ucase {
    text-transform: uppercase;
}

.radio-lg {
    transform: scale(1.5); 
    cursor: pointer;
}

.radio-lg-txt {
    font-size: 16px;
}

.hrshort {
    width: 50px;
    height: 3px;
    background-color: #dc3545;
    border: none;
    margin-bottom: 1.5rem;
    display: block;
}

.hrlong {
    margin-bottom: 15px;
    display: inline-block;
    width: 150px;
    border-bottom: 2px #F00 solid;
}

/* Loading Spinners */
.spinner {
    background: #000;
    opacity: .8;
    z-index: 2000;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -25px;
    margin-left: -25px;
    width: 50px;
    height: 50px;
}

/* Transitions */
#step1, #step2, #step3 {
    transition: all .30s ease-out;
}

.hiddenwithspace {
    visibility: hidden;
}

/* Icon & Input Element Refinements */
.pe-lg {
    font-size: 1.33333333em;
    line-height: 0.75em;
    vertical-align: -15%;
}
.pe-2x { font-size: 2em; }
.pe-3x { font-size: 3em; }
.pe-4x { font-size: 4em; }
.pe-5x { font-size: 5em; }

.input-group-text {
    background-color: #f8f9fa;
    color: #6c757d;
}

.filerow {
    background: #EAEAEA;
    padding: 10px;
    border-bottom: 2px #FFF solid;
}

.no-file {
    width: 100px;
    height: 100px;
}

.no-file-lg {
    width: 100%;
    height: 150px;
}

.w-100 {
    width: 100% !important;
}
.no-padding {
    padding: 0 !important;
}

.loginLogo {
    width: 60%;
}

.loginLogo-sm {
    width: 300px;
    margin: 0 auto;
    display: block;
}

.dashLogo {
    width: 350px;
    max-width: 100%;
    height: auto;
    margin: auto;
}

.ppoDiv {
    width: 100%;
}

.redOutLine {
    border: 2px #F00 solid;
}

/* ==========================================================================
   6. Custom Dashboard Components & Widgets
   ========================================================================== */
.widget {
    background: #EAEAEA;
    margin: 5px;
}
.widget-body {
    padding: 10px;
}
.widget h2 {
    color: #000;
}
.widget-head {
    margin: 0;
    font-size: 15px;
    color: #000;
}
.widget-foot {
    margin: 0;
    font-size: 12px;
    color: #000;
}
.widget-icon {
    width: 4em;
    height: 4em;
    background: #14380A;
    border-radius: 50%;
    padding: 1em;
    margin-top: -1.2em;
}
.widget-white {
    color: #FFF;
} 

.pointer {
    cursor: pointer;
}

.auth-form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    background: #fff;
}

/* Add this new block right below it to wrap the nested content div */
.auth-form-container > div {
    padding: 1rem !important;
    border: 1px solid #e3e6f0 !important;
    border-radius: 1rem !important;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05) !important;
    background-color: #ffffff;
}


/* ==========================================================================
   Clean & Professional Government Logo Block Configuration
   ========================================================================== */
.auth-bg img.loginLogo,
.auth-bg img.loginLogo-sm {
    background-color: #ffffff;
    padding: 1.25rem 2rem !important; /* Perfect balance of white space around the logo text */
    
    /* Replaced broken vector path with a highly polished modern card mask */
    border-radius: 1.25rem !important; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    
    /* Ensure seamless responsive scaling on all display widths */
    max-width: 100% !important;
    height: auto !important;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Clean & Smooth Outward Curved Layout Divider
   ========================================================================== */

/* 1. Mobile & Small Screen Layout (Columns Stacked Vertically) */
@media (max-width: 991.98px) {
    .auth-form-container {
        position: relative;
        z-index: 1;
        margin-top: -30px; /* Pulls the white form panel slightly up into the blue panel */
        border-top-left-radius: 2rem !important;
        border-top-right-radius: 2rem !important;
    }

    /* Generates a clean, smooth outward curve at the top edge of the form panel */
    .auth-form-container::before {
        content: "";
        position: absolute;
        top: -40px; /* Positions the curve directly above the container */
        left: 0;
        width: 100%;
        height: 42px;
        z-index: 2;
        background-color: #ffffff;
        
        /* Inline SVG Mask generating a true horizontal geometric curve */
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 50' preserveAspectRatio='none'%3E%3Cpath d='M0,50 L400,50 L400,50 Q200,0 0,50 Z' fill='%23000'/%3E%3C/svg%3E");
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 50' preserveAspectRatio='none'%3E%3Cpath d='M0,50 L400,50 L400,50 Q200,0 0,50 Z' fill='%23000'/%3E%3C/svg%3E");
        
        mask-size: 100% 100%;
        -webkit-mask-size: 100% 100%;
        mask-repeat: no-repeat;
        -webkit-mask-repeat: no-repeat;
    }
}

/* 2. Desktop Layout (Columns Side-by-Side) */
@media (min-width: 992px) {
    .auth-form-container {
        position: relative;
        z-index: 1;
    }

    /* Generates a clean, smooth outward curve on the left side of the form panel */
    .auth-form-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: -50px; /* Projects the curve outward into the blue left panel */
        width: 52px;
        height: 100%;
        z-index: 2;
        background-color: #ffffff;
        
        /* Inline SVG Mask generating a true vertical geometric curve */
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 400' preserveAspectRatio='none'%3E%3Cpath d='M50,0 L50,400 L50,400 Q0,200 50,0 Z' fill='%23000'/%3E%3C/svg%3E");
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 400' preserveAspectRatio='none'%3E%3Cpath d='M50,0 L50,400 L50,400 Q0,200 50,0 Z' fill='%23000'/%3E%3C/svg%3E");
        
        mask-size: 100% 100%;
        -webkit-mask-size: 100% 100%;
        mask-repeat: no-repeat;
        -webkit-mask-repeat: no-repeat;
    }
}

/* ==========================================================================
   7. Executive Admin Sidebar Layout System (Original Color Matched)
   ========================================================================== */
@media (min-width: 992px) {
    body:has(.admin-sidebar) {
        display: flex;
        min-height: 100vh;
        overflow-x: hidden;
        background-color: #f8f9fa;
    }
    
    /* Sleek Sidebar Panel matching the application's base blue theme */
    .admin-sidebar {
        width: 250px;
        min-width: 250px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1030;
        background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important; /* Preserved blue panel background layout */
        display: flex;
        flex-direction: column;
        padding: 0.5rem 0 !important;
        border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
		
    }
    
    /* Workspace Content Area Frame Offset */
    .admin-main-view {
        margin-left: 250px;
        width: calc(100% - 250px);
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background-color: #f9fafb;
    }
    
    /* Branding Header Typography Section */
    .admin-sidebar .navbar-brand {
        font-family: 'Inter', sans-serif !important;
        font-weight: 700 !important;
        font-size: 20px !important;
        color: #ffffff !important;
        letter-spacing: -0.5px;
        padding: 0 .5rem 1.5rem .5rem !important;
        margin-bottom: 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
        text-align: left !important;
		
    }
    
    /* Navigation Stack Properties */
    .admin-sidebar .navbar-nav {
        flex-direction: column !important;
        width: 100%;
        padding: 0 0.2rem !important;
    }
    
    .admin-sidebar .nav-item {
        margin: 2px 0 !important;
        width: 100%;
    }
    
    /* Link Base Style Configuration */
    .admin-sidebar .nav-link {
		width: 100%;
        padding: 0.8rem 0.5rem !important;
        display: flex !important;
        align-items: center;
        border-radius: 0.375rem !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        color: rgba(255, 255, 255, 0.75) !important; /* Semi-transparent high-contrast white text fallback */
        transition: all 0.15s ease-in-out !important;
    }
    
    /* Grid Anchor Icon Constraints */
    .admin-sidebar .nav-link i,
    .admin-sidebar .nav-link .fa {
        width: 20px;
        font-size: 15px !important;
        margin-right: 0.5rem !important;
        text-align: center;
        color: rgba(255, 255, 255, 0.5); 
        transition: color 0.15s ease-in-out;
		
    }
    
    /* Modern Light Interactive States */
    .admin-sidebar .nav-link:hover {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    .admin-sidebar .nav-link:hover i {
        color: #ffffff !important;
    }
    
    /* Professional Focused Application State */
    .admin-sidebar .nav-link.active {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.2) !important; /* Balanced transparent white highlight block */
        font-weight: 600 !important;
    }
    
    .admin-sidebar .nav-link.active i {
        color: #ffffff !important;
    }

    /* Embedded Sub-navigation elements */
    .admin-sidebar .dropdown-menu {
        position: static !important;
        transform: none !important;
        background-color: rgba(0, 0, 0, 0.15) !important;
        border: none !important;
        box-shadow: none !important;
        margin: 4px 0 8px 0 !important;
        padding: 0.5rem 0 !important;
        border-radius: 0.375rem !important;
		
    }
    
    .admin-sidebar .dropdown-item {
        color: rgba(255, 255, 255, 0.75) !important;
        padding: 0.6rem 1rem 0.6rem 2.5rem !important;
        font-size: 12.5px !important;
        font-weight: 500;
        transition: all 0.15s ease-in-out;
    }
    
    .admin-sidebar .dropdown-item:hover {
        background-color: transparent !important;
        color: #ffffff !important;
        padding-left: 2.75rem !important; /* Dynamic modern slide inset animation */
    }

    /* Structural Segment Border Cut lines */
    .admin-sidebar .border-top {
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    }

    /* System Operational Exit Command Link */
    .admin-sidebar .nav-link.text-danger-hover:hover {
        background-color: #ef4444 !important;
        color: #ffffff !important;
    }
    
    .admin-sidebar .nav-link.text-danger-hover:hover i {
        color: #ffffff !important;
    }
    
    /* Corporate Identity Footnote Block */
    .admin-sidebar .sim {
        margin-top: auto !important;
        padding: 1.25rem 1.5rem 0 1.5rem !important;
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
        width: 100%;
    }
    
    .admin-sidebar .sim span {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        letter-spacing: 0.3px;
    }
    
    .admin-sidebar .sim small {
        font-size: 11px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        display: block;
        margin-top: 2px;
    }
}

/* Fluid Native Adjustments for Handheld Form Factors */
@media (max-width: 991.98px) {
    .admin-sidebar {
        background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) !important;
        padding: 0.75rem 1rem !important;
    }
    .admin-sidebar .navbar-brand {
        border-bottom: none !important;
        margin-bottom: 0 !important;
        padding: 0.5rem 0 !important;
        font-size: 18px !important;
    }
    .admin-sidebar .navbar-nav {
        margin-top: 1rem;
    }
    .admin-sidebar .sim {
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding-top: 1rem;
        margin-top: 1rem;
    }
}

/* ========================================================================== 
   V4 — Clean Bootstrap 5 User Area Baseline
   --------------------------------------------------------------------------
   This section intentionally preserves the original public-page structure.
   It only isolates legacy admin layout rules and gives the Bootstrap 5
   migration a stable, restrained visual baseline.
   ========================================================================== */

body.user-area {
    display: block !important;
    min-height: 100vh;
    overflow-x: hidden;
    background: #f5f7fb;
    color: #172033;
    font-family: "Inter", "Noto Sans Bengali", Arial, sans-serif;
    line-height: 1.5;
}

body.user-area * {
    font-family: inherit;
}

body.user-area .navbar-red {
    position: relative;
    min-height: 68px;
    background: #386fd1;
    color: #fff;
    padding-top: .55rem;
    padding-bottom: .55rem;
}

body.user-area .navbar-red .wrapper {
    pointer-events: none;
    opacity: .22;
}

body.user-area .navbar-brand {
    position: relative;
    z-index: 2;
    margin: 0 1.5rem 0 0;
    padding: .25rem 0;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

body.user-area .navbar-nav > li > a {
    margin-right: .25rem;
    padding: .6rem .75rem !important;
    border-radius: .45rem;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: none;
    color: rgba(255,255,255,.9) !important;
}

body.user-area .navbar-nav .nav-link:hover,
body.user-area .navbar-nav .nav-link:focus,
body.user-area .navbar-nav .nav-link.active {
    background: rgba(255,255,255,.14);
    color: #fff !important;
}

body.user-area .navbar-toggler {
    border-color: rgba(255,255,255,.45);
    box-shadow: none !important;
}

body.user-area .sim {
    position: relative;
    z-index: 2;
    margin-left: 1rem;
    padding-left: 1.1rem;
    border-left: 1px solid rgba(255,255,255,.24);
    color: #fff;
    line-height: 1.25;
}

body.user-area .sim span {
    font-size: .78rem;
    font-weight: 600;
}

body.user-area .sim small {
    margin-top: .15rem;
    font-size: .7rem;
    color: rgba(255,255,255,.74);
}

body.user-area .user-dashboard-heading {
    background: #fff;
    border-bottom: 1px solid #e6eaf0;
}

body.user-area .dashLogo {
    width: min(300px, 82vw);
    height: auto;
    object-fit: contain;
}

body.user-area .user-dashboard-heading h6 {
    color: #24324a;
    font-size: 1rem;
    font-weight: 600;
}

body.user-area .main-wrapper {
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 1rem 1.25rem 2rem;
}

body.user-area .main-wrapper > .row {
    margin-left: 0;
    margin-right: 0;
}

body.user-area .card {
    border: 1px solid #e3e8ef;
    border-radius: .8rem;
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .055);
}

body.user-area .card-body {
    padding: 1.35rem;
}

body.user-area .card-body > h6:first-child,
body.user-area #step5 > h4,
body.user-area #step1 h6:first-child,
body.user-area #step2 h6:first-child,
body.user-area #step3 h6:first-child,
body.user-area #step4 h6:first-child {
    color: #172033;
    font-size: 1rem;
    font-weight: 700;
}

body.user-area .hrshort {
    width: 46px;
    height: 3px;
    margin-top: .45rem;
    margin-bottom: 1.25rem;
    background: #386fd1;
    border-radius: 99px;
}

body.user-area .form-group {
    margin-bottom: 1rem;
    color: #27344a;
    font-size: .82rem;
    font-weight: 600;
}

body.user-area .form-control,
body.user-area .form-select,
body.user-area .input-group-text {
    min-height: 42px;
    border-color: #d6dde8;
    font-size: .84rem;
}

body.user-area textarea.form-control {
    min-height: 94px;
    resize: vertical;
}

body.user-area .form-control:focus,
body.user-area .form-select:focus {
    border-color: #6c96e4;
    box-shadow: 0 0 0 .2rem rgba(56,111,209,.12);
}

body.user-area .form-control[readonly],
body.user-area .form-control:disabled,
body.user-area .form-select:disabled {
    background-color: #f6f8fb;
    color: #526078;
}

body.user-area .input-group-text {
    min-width: 42px;
    justify-content: center;
    background: #f8fafc;
    color: #66758c;
}

body.user-area .form-check-input {
    border-color: #b9c5d5;
}

body.user-area .form-check-input:checked {
    background-color: #386fd1;
    border-color: #386fd1;
}

body.user-area .filerow {
    height: 100%;
    margin-bottom: .85rem;
    padding: .9rem;
    background: #f8fafc;
    border: 1px solid #e1e7ef;
    border-radius: .65rem;
}

body.user-area .filerow input[type="file"] {
    width: 100%;
}

body.user-area .no-file {
    width: 82px;
    height: 82px;
    object-fit: contain;
}

body.user-area .no-file-lg {
    max-width: 180px;
    height: 135px;
    object-fit: contain;
}

body.user-area .btn {
    border-radius: .5rem;
    font-size: .84rem;
    font-weight: 600;
}

body.user-area .table {
    --bs-table-bg: transparent;
    font-size: .8rem;
}

body.user-area .table th,
body.user-area .table td {
    vertical-align: middle;
}

@media (min-width: 1200px) {
    body.user-area .main-wrapper {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 991.98px) {
    body.user-area .navbar-red {
        min-height: 62px;
    }

    body.user-area .navbar-red .wrapper {
        display: none;
    }

    body.user-area .navbar-collapse {
        margin-top: .7rem;
        padding: .65rem 0 .25rem;
        border-top: 1px solid rgba(255,255,255,.16);
    }

    body.user-area .navbar-nav > li > a {
        margin: .1rem 0;
        padding: .55rem .65rem !important;
    }

    body.user-area .sim {
        margin: .65rem 0 0;
        padding: .7rem .65rem 0;
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.16);
    }

    body.user-area .main-wrapper {
        padding: .75rem .75rem 1.5rem;
    }

    body.user-area .card-body {
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    body.user-area .navbar-brand {
        font-size: 1.18rem;
        margin-right: .75rem;
    }

    body.user-area .dashLogo {
        width: min(245px, 78vw);
    }

    body.user-area .user-dashboard-heading {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    body.user-area .user-dashboard-heading h6 {
        font-size: .9rem;
    }

    body.user-area .main-wrapper {
        padding-left: .55rem;
        padding-right: .55rem;
    }

    body.user-area .card {
        border-radius: .65rem;
    }

    body.user-area .form-control,
    body.user-area .form-select,
    body.user-area .input-group-text {
        min-height: 44px;
        font-size: .84rem;
    }
}


/* ================================================================
   V4.1 — Premium A4 Acknowledgement + Print UX
   Scoped entirely to the acknowledgement page.
   ================================================================ */
body.user-area {
    background: #eef2f7;
}

.ack-page {
    padding: 28px 16px 56px;
}

.ack-toolbar {
    width: min(210mm, calc(100% - 24px));
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ack-toolbar-copy h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #172033;
}

.ack-toolbar-copy p {
    margin: 3px 0 0;
    font-size: 13px;
    color: #667085;
}

#empty_for_acknowledgement_message {
    margin: 0;
}

.ack-print-btn {
    min-width: 142px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    font-weight: 600;
}

.ack-sheet {
    width: min(210mm, calc(100% - 24px));
    min-height: 275mm;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #d9e0ea;
    box-shadow: 0 12px 34px rgba(16, 24, 40, .10);
    color: #172033;
    overflow: hidden;
}

.ack-header {
    padding: 20px 28px 16px;
    text-align: center;
    border-bottom: 2px solid #1f4fa8;
}

.ack-logo {
    display: block;
    width: auto;
    max-width: 270px;
    max-height: 104px;
    margin: 0 auto 8px;
    object-fit: contain;
}

.ack-office-address {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #475467;
    letter-spacing: .02em;
}

.ack-title-band {
    padding: 14px 28px;
    text-align: center;
    background: #f7f9fc;
    border-bottom: 1px solid #d9e0ea;
}

.ack-assamese-title {
    margin: 0 0 3px;
    font-size: 18px;
    font-weight: 700;
    color: #102a56;
}

.ack-document-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #1f4fa8;
}

.ack-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid #d9e0ea;
}

.ack-summary-col {
    padding: 16px 22px;
}

.ack-summary-col + .ack-summary-col {
    border-left: 1px solid #e4e9f0;
}

.ack-summary-item {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    margin-bottom: 8px;
}

.ack-summary-item:last-child {
    margin-bottom: 0;
}

.ack-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.ack-value {
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    color: #172033;
    overflow-wrap: anywhere;
}

.ack-value.ack-application-number {
    display: inline-flex;
    width: fit-content;
    padding: 3px 9px;
    border-radius: 6px;
    background: #eef4ff;
    color: #1849a9;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .03em;
}

.ack-section {
    padding: 15px 22px 16px;
    border-bottom: 1px solid #e4e9f0;
}

.ack-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 800;
    color: #1849a9;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.ack-section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    border-radius: 999px;
    background: #2f6fed;
}

.ack-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px 18px;
}

.ack-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ack-field {
    min-width: 0;
}

.ack-field.wide {
    grid-column: 1 / -1;
}

.ack-field-label {
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    font-weight: 700;
    color: #7a8495;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.ack-field-value {
    display: block;
    min-height: 18px;
    font-size: 12.5px;
    line-height: 1.42;
    font-weight: 600;
    color: #172033;
    overflow-wrap: anywhere;
}

.ack-disclaimer {
    margin: 16px 22px 14px;
    padding: 11px 13px;
    border: 1px solid #f1d48a;
    border-left: 4px solid #d9a514;
    border-radius: 7px;
    background: #fffaf0;
    color: #544415;
    font-size: 10.5px;
    line-height: 1.5;
    text-align: justify;
}

.ack-footer-note {
    padding: 0 22px 18px;
    text-align: center;
    font-size: 9.5px;
    color: #7a8495;
}

/* Existing JavaScript may toggle these IDs directly. */
#aintro.hidden,
#pInfoDiv.hidden,
#nops.hidden,
#bankInfoDiv.hidden,
#nxtDiv.hidden {
    display: none !important;
}

@media (max-width: 767.98px) {
    .ack-page {
        padding: 18px 8px 36px;
    }

    .ack-toolbar,
    .ack-sheet {
        width: 100%;
    }

    .ack-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .ack-print-btn {
        width: 100%;
    }

    .ack-sheet {
        min-height: 0;
    }

    .ack-header,
    .ack-title-band {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ack-logo {
        max-width: 230px;
        max-height: 92px;
    }

    .ack-summary {
        grid-template-columns: 1fr;
    }

    .ack-summary-col + .ack-summary-col {
        border-left: 0;
        border-top: 1px solid #e4e9f0;
    }

    .ack-summary-item {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .ack-grid,
    .ack-grid.two-col {
        grid-template-columns: 1fr;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 8mm;
    }

    html,
    body,
    body.user-area {
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        overflow: visible !important;
    }

    nav,
    .navbar,
    .spinner,
    .ack-toolbar,
    .no-print {
        display: none !important;
    }

    .main-wrapper,
    .ack-page {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .ack-sheet {
        width: 194mm !important;
        max-width: 194mm !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        border: 1px solid #b8c0cc !important;
        box-shadow: none !important;
        overflow: visible !important;
        page-break-inside: auto !important;
        break-inside: auto !important;
    }

    /* printThis uses an iframe whose viewport may be narrow enough to trigger
       the mobile media query. Force the desktop document grid for print. */
    .ack-summary {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ack-summary-col + .ack-summary-col {
        border-left: 1px solid #e4e9f0 !important;
        border-top: 0 !important;
    }

    .ack-summary-item {
        grid-template-columns: 31mm minmax(0, 1fr) !important;
        gap: 2.5mm !important;
        margin-bottom: 1.6mm !important;
    }

    .ack-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 2.2mm 4mm !important;
    }

    .ack-grid.two-col {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .ack-field.wide {
        grid-column: 1 / -1 !important;
    }

    .ack-header {
        padding: 3mm 6mm 2.5mm !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .ack-logo {
        max-width: 58mm !important;
        max-height: 20mm !important;
        margin-bottom: 1.5mm !important;
    }

    .ack-office-address {
        font-size: 8.5pt !important;
    }

    .ack-title-band {
        padding: 2.5mm 6mm !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .ack-assamese-title {
        font-size: 12pt !important;
        margin-bottom: 0.7mm !important;
    }

    .ack-document-title {
        font-size: 10.5pt !important;
    }

    .ack-summary {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .ack-summary-col {
        padding: 3mm 5mm !important;
    }

    .ack-section {
        padding: 3mm 5mm 3.2mm !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .ack-section-title {
        margin-bottom: 2.2mm !important;
        font-size: 8.5pt !important;
    }

    .ack-section-title::before {
        height: 11px !important;
        width: 3px !important;
    }

    .ack-label,
    .ack-field-label {
        font-size: 7.2pt !important;
    }

    .ack-value,
    .ack-field-value {
        font-size: 8.8pt !important;
        line-height: 1.28 !important;
    }

    .ack-value.ack-application-number {
        font-size: 10.5pt !important;
        padding: 1mm 2mm !important;
    }

    .ack-disclaimer {
        margin: 3mm 5mm 2.5mm !important;
        padding: 2.5mm 3mm !important;
        font-size: 7.6pt !important;
        line-height: 1.35 !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .ack-footer-note {
        padding: 0 5mm 3mm !important;
        font-size: 7pt !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}
