/* KoperasiKu - custom theme on top of AdminLTE 2 */
body, .main-sidebar, .sidebar-menu, .navbar { font-family: 'Inter','Segoe UI',Tahoma,sans-serif; }

.skin-blue .main-header .logo.logo-brand-wrap {
    background:#1d4ed8;
    padding:0 10px 0 12px;
    line-height:50px;
    overflow:hidden;
}
.skin-blue .main-header .logo.logo-brand-wrap:hover { background:#1e40af; }
.skin-blue .main-header .logo .logo-brand-inner {
    display:flex;
    align-items:center;
    gap:10px;
    height:50px;
    line-height:1.2;
    text-align:left;
}
.skin-blue .main-header .logo .logo-brand-name {
    color:#fff;
    font-size:13px;
    font-weight:600;
    letter-spacing:.01em;
    flex:1;
    min-width:0;
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    white-space:normal;
}
.skin-blue .main-header .logo .logo-brand-initial {
    display:inline-block;
    color:#fff;
    font-size:18px;
    font-weight:700;
    line-height:50px;
}
.skin-blue .main-header .logo .brand-logo-img {
    display:block;
    object-fit:contain;
    flex-shrink:0;
}
.skin-blue .main-header .logo .brand-logo-mini {
    max-height:32px;
    max-width:40px;
    margin:9px auto 0;
}
.skin-blue .main-header .logo .brand-logo-lg {
    max-height:38px;
    max-width:46px;
    margin:0;
}
.sidebar .user-panel .sidebar-user-photo {
    width:45px;
    height:45px;
    object-fit:cover;
    border:2px solid rgba(255,255,255,.35);
    background:#1e3a8a;
}
.sidebar .user-panel .image { width:45px; }
.sidebar .user-panel .info { padding-left:8px; }
.skin-blue .main-header .navbar { background:#2563eb; }
.skin-blue .main-header .navbar .nav>li>a:hover { background:rgba(0,0,0,0.1); }
.skin-blue .sidebar-menu>li.active>a, .skin-blue .sidebar-menu>li:hover>a { border-left-color:#fbbf24; }

.box.box-solid.box-primary>.box-header { background:#2563eb; }
.btn-primary { background:#2563eb; border-color:#1d4ed8; }
.btn-primary:hover { background:#1d4ed8; }

.small-box .icon { opacity:0.25; }
.small-box.bg-aqua    { background:linear-gradient(135deg,#06b6d4,#0891b2)!important; }
.small-box.bg-green   { background:linear-gradient(135deg,#10b981,#059669)!important; }
.small-box.bg-yellow  { background:linear-gradient(135deg,#f59e0b,#d97706)!important; }
.small-box.bg-red     { background:linear-gradient(135deg,#ef4444,#dc2626)!important; }
.small-box.bg-purple  { background:linear-gradient(135deg,#8b5cf6,#7c3aed)!important; }
.small-box.bg-teal    { background:linear-gradient(135deg,#14b8a6,#0d9488)!important; }

.label { font-weight:500; padding:4px 10px; border-radius:12px; }

/* Login page */
.login-card {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-radius:18px;
    box-shadow:0 25px 60px rgba(0,0,0,.25);
    padding:36px;
    max-width:420px;
    width:100%;
}
.login-bg {
    background:linear-gradient(135deg,#1e3a8a 0%, #2563eb 50%, #06b6d4 100%);
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}
.login-head { margin-bottom:22px; }
.login-title {
    margin:0;
    font-weight:700;
    color:#1f2937;
    font-size:20px;
    line-height:1.3;
}
.login-logo-wrap { margin-bottom:14px; }
.login-logo-box {
    width:92px;
    height:92px;
    margin:0 auto;
    border-radius:16px;
    background:linear-gradient(135deg,#2563eb,#06b6d4);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:36px;
    box-shadow:0 8px 28px rgba(37,99,235,.35);
    border:2px solid rgba(255,255,255,.55);
    overflow:hidden;
    box-sizing:border-box;
}
.login-logo-box--img {
    background:#fff;
    border:2px solid #e2e8f0;
    padding:12px;
    box-shadow:0 6px 22px rgba(15,23,42,.1);
}
.login-logo-box .login-logo-img {
    display:block;
    max-width:100%;
    max-height:100%;
    width:auto;
    height:auto;
    object-fit:contain;
}

/* POS - Kasir */
.pos-wrap { display:grid; grid-template-columns: 1fr 420px; gap:14px; }
@media(max-width: 1100px){ .pos-wrap{ grid-template-columns: 1fr; } }

.pos-products { background:#fff; border:1px solid #e5e7eb; border-radius:8px; padding:12px; }
.pos-cart     { background:#fff; border:1px solid #e5e7eb; border-radius:8px; padding:12px; position:sticky; top:14px; }

.pos-grid { display:grid; grid-template-columns: repeat(auto-fill,minmax(158px,1fr)); gap:10px; }
.pos-item {
    border:1px solid #e5e7eb;
    border-radius:10px;
    padding:0;
    background:#f9fafb;
    cursor:pointer;
    transition:all .15s ease;
    text-align:left;
    user-select:none;
    overflow:hidden;
    display:flex;
    flex-direction:column;
}
.pos-item:hover { border-color:#2563eb; background:#eff6ff; transform:translateY(-2px); box-shadow:0 6px 14px rgba(37,99,235,.12); }
.pos-item-thumb {
    height:104px;
    background:#f1f5f9;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    flex-shrink:0;
}
.pos-item-thumb img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.pos-item-thumb-ph { color:#cbd5e1; font-size:38px; line-height:1; }
.pos-item-body { padding:8px 10px 11px; flex:1; display:flex; flex-direction:column; }
.pos-item .nm { font-weight:600; font-size:13.5px; color:#1f2937; margin-bottom:4px; min-height:34px; line-height:1.25; }
.pos-item .bc { color:#64748b; font-size:11px; margin-bottom:3px; font-family:Consolas,monospace; letter-spacing:0.02em; }
.pos-item .pr { color:#2563eb; font-weight:700; font-size:14px; }
.pos-item .st { color:#6b7280; font-size:11.5px; margin-top:auto; padding-top:3px; }
.pos-item.lo  { opacity:.5; pointer-events:none; }

.pos-cart-prod { display:flex; align-items:flex-start; gap:8px; }
.pos-cart-thumb {
    width:42px;
    height:42px;
    object-fit:cover;
    border-radius:8px;
    flex-shrink:0;
    border:1px solid #e5e7eb;
    background:#f9fafb;
}
.pos-cart-nama { font-weight:600; font-size:13px; }

.pos-cart .table > tbody > tr > td,
.pos-cart .table > thead > tr > th { padding:6px 4px; font-size:13px; vertical-align:middle; }

.pos-summary { font-size:14px; }
.pos-summary .row-line { display:flex; justify-content:space-between; padding:5px 0; border-top:1px dashed #e5e7eb; }
.pos-summary .total { font-size:24px; color:#2563eb; font-weight:700; }

.pos-tile-cat {
    border:1px solid #e5e7eb;
    border-radius:8px;
    padding:6px 12px;
    background:#fff;
    cursor:pointer;
    font-size:13px;
}
.pos-tile-cat.active { background:#2563eb; color:#fff; border-color:#2563eb; }

.pos-scan-bar .input-group-addon { background:#f8fafc; color:#475569; }

/* Kop surat di halaman laporan: tersembunyi di layar, tampil saat Ctrl+P */
@media screen {
    .kop-surat-printonly { display: none !important; }
}
@media print {
    .kop-surat-printonly { display: table !important; width: 100% !important; }
}

/*
 * Cetak dari layout AdminLTE.
 * Jangan pakai visibility:hidden pada seluruh body (akan menghasilkan halaman cetak kosong).
 * Struk thermal memakai HTML terpisah tanpa app.css ini.
 */
@media print {
    html, body {
        height: auto !important;
        overflow: visible !important;
        background: #fff !important;
    }
    .wrapper {
        overflow: visible !important;
        height: auto !important;
        background: #fff !important;
    }
    .content-wrapper,
    .content-wrapper .content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        margin-left: 0 !important;
        padding: 8px !important;
        min-height: 0 !important;
        -webkit-transform: none !important;
        transform: none !important;
    }
    .main-sidebar, .main-header, .left-side, .content-header, .main-footer,
    .sidebar-toggle, .no-print, .pagination,
    .dataTables_filter, .dataTables_length, .dataTables_paginate, .dataTables_info {
        display: none !important;
    }
    /* Sembunyikan tombol alat; jangan sembunyikan semua .btn (edge case komponen lain). */
    .box-tools .btn, .box-header .btn, .form-inline .btn, .navbar .btn {
        display: none !important;
    }
    .box { border: none !important; box-shadow: none !important; }
    .box-header { border-bottom: 1px solid #ddd !important; }
    .table-responsive { overflow: visible !important; }
    .dataTables_wrapper { overflow: visible !important; }
    table.dataTable { width: 100% !important; }
}
.struk { font-family:'Courier New', monospace; font-size:12px; width:80mm; padding:10px; }
.struk h4 { margin:0; font-size:14px; text-align:center; }
.struk hr { border:0; border-top:1px dashed #000; margin:6px 0; }
.struk table { width:100%; }

.text-money { font-family:'Consolas','Courier New',monospace; font-weight:600; }
