/* Bhumi Record Archive — Admin UI */
.bra-wrap,
.bra-wrap * {
    box-sizing: border-box;
}

.bra-wrap {
    font-family: 'SolaimanLipi', 'Kalpurush', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #1e293b;
    padding-bottom: 35px;
}

.bra-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0 20px;
}

.bra-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #0f172a;
}

.bra-title .dashicons {
    width: 40px;
    height: 40px;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    border-radius: 10px;
}

.bra-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.bra-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #3b82f6;
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
}

.bra-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.bra-card-num {
    font-size: 32px;
    font-weight: 800;
    color: #1d4ed8;
    line-height: 1.2;
}

.bra-card-label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-top: 4px;
}

.bra-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.bra-panel h2,
.bra-panel h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.bra-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 18px;
}

.bra-filter-bar input[type="text"],
.bra-filter-bar input[type="search"],
.bra-filter-bar select {
    min-height: 38px;
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

.bra-table-wrap {
    overflow-x: auto;
}

.bra-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.bra-table th {
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 700;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #cbd5e1;
    font-size: 13.5px;
}

.bra-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    font-size: 14px;
}

.bra-table tr:hover td {
    background: #f8fafc;
}

.bra-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #f1f5f9;
    color: #334155;
    white-space: nowrap;
}

.bra-badge-success { background: #dcfce7; color: #166534; }
.bra-badge-warning { background: #fef3c7; color: #92400e; }
.bra-badge-danger  { background: #fee2e2; color: #991b1b; }
.bra-badge-info    { background: #dbeafe; color: #1e40af; }
.bra-badge-dark    { background: #e2e8f0; color: #0f172a; }

.bra-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}

.bra-scanner-split {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 20px;
    align-items: start;
}

.bra-scanner-img-box {
    position: sticky;
    top: 40px;
    background: #0f172a;
    border-radius: 10px;
    padding: 10px;
    max-height: 78vh;
    overflow: auto;
}

.bra-scanner-img-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

@media (max-width: 960px) {
    .bra-scanner-split {
        grid-template-columns: 1fr;
    }
    .bra-scanner-img-box {
        position: static;
        max-height: 400px;
    }
}

.bra-calc-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.bra-calc-box label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 4px;
}

.bra-calc-box input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.bra-print-only { display: none; }

@media print {
    #adminmenumain, #adminmenuwrap, #adminmenuback, #wpadminbar, #wpfooter, .bra-no-print, .notice {
        display: none !important;
    }
    #wpcontent, #wpbody, #wpbody-content, .wrap {
        margin: 0 !important;
        padding: 0 !important;
    }
    .bra-print-only { display: block !important; }
    .bra-panel { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; }
}