/* BBNepal ERP - Computer Lab Management Stylesheet */
:root {
    --primary: #032da1;
    --primary-hover: #02227d;
    --secondary: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --text-dark: #1e293b;
    --text-muted: #64748b;
}

/* Full Screen Content Wrapper & Card Width */
.wraper.responsive-width {
    width: calc(100% - 220px) !important;
    max-width: 100% !important;
    padding: 15px 25px 30px 25px !important;
    margin-left: 220px !important;
    box-sizing: border-box !important;
}

@media (max-width: 991px) {
    .wraper.responsive-width {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 15px !important;
    }
}

.erp-container {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: calc(100vh - 120px) !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

.erp-main {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.erp-header {
    background: #fff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 20px 24px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

.back-btn-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid #cbd5e1;
}
.back-btn-circle:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    text-decoration: none;
}

button,
.btn,
.erp-btn,
.btn-primary-erp,
.nav-tab-link,
.btn-light,
.action-btn,
a.btn,
.back-btn-circle,
.autocomplete-item,
[onclick] {
    cursor: pointer !important;
}

.erp-btn {
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 7px 16px !important;
    border-radius: 7px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
}

.btn-primary-erp {
    background: var(--primary) !important;
    color: #fff !important;
    border: 1px solid var(--primary) !important;
    cursor: pointer !important;
}
.btn-primary-erp:hover {
    background: var(--primary-hover) !important;
    color: #fff !important;
}

.nav-tab-link {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    padding: 8px 16px !important;
    border-radius: 7px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.15s !important;
    cursor: pointer !important;
}
.nav-tab-link:hover, .nav-tab-link.active {
    background: rgba(3, 45, 161, 0.08) !important;
    color: var(--primary) !important;
    border-color: rgba(3, 45, 161, 0.25) !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.kpi-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kpi-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.kpi-val {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}
.kpi-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Full Width Modern Content Cards */
.content-card {
    background: #fff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
    overflow: hidden !important;
    margin-bottom: 24px !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.content-card-header {
    padding: 12px 18px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid var(--border-color) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-shrink: 0 !important;
}

.card-body-padded, .content-card-body, .content-card > .p-4, .content-card > .p-3 {
    padding: 12px 18px !important;
    flex: 1 1 auto !important;
    background: #fff !important;
}

.erp-list-wrap {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

.erp-list-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: transparent !important;
}
.erp-list-item:first-child {
    padding-top: 0 !important;
}
.erp-list-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.erp-item-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    display: block !important;
    line-height: 1.3 !important;
}

.erp-item-sub {
    font-size: 11px !important;
    color: #64748b !important;
    margin-top: 1px !important;
    line-height: 1.2 !important;
}

.status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.table {
    width: 100% !important;
    text-align: left !important;
}

.table th, .table td {
    vertical-align: middle !important;
    text-align: left !important;
}

/* Autocomplete Searchable Dropdown */
.autocomplete-wrapper {
    position: relative !important;
}
.autocomplete-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1060;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    max-height: 200px;
    overflow-y: auto;
    margin-top: 2px;
}
.autocomplete-suggestions.show {
    display: block !important;
    animation: acFadeIn 0.15s ease;
}
@keyframes acFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.autocomplete-item {
    padding: 8px 14px;
    font-size: 12px;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}
.autocomplete-item:last-child {
    border-bottom: none;
}
.autocomplete-item:hover, .autocomplete-item.selected {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}
.autocomplete-suggestions::-webkit-scrollbar {
    width: 5px;
}
.autocomplete-suggestions::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.table th.text-center, .table td.text-center {
    text-align: center !important;
}

.table th.text-right, .table td.text-right {
    text-align: right !important;
}
