/* Supplier dashboard — chuẩn hoá theo phong cách admin (Gentellela) */
.sup-admin-layout { display: flex; gap: 0; align-items: stretch; max-width: 1280px; margin: 30px auto 90px; padding: 0 16px; }
.sup-admin-layout .sup-side-col { width: 250px; flex: 0 0 250px; }
.sup-admin-layout .sup-main-col { flex: 1; min-width: 0; }

/* Sidebar */
.sup-sidebar { background: #2a3f54; border-radius: 0; color: #fff; overflow: hidden; position: sticky; top: 16px; }
.sup-sidebar-profile { display: flex; gap: 12px; align-items: center; padding: 18px 16px; background: rgba(0,0,0,.18); }
.sup-avatar { width: 46px; height: 46px; border-radius: 50%; background: #1abb9c; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; flex: 0 0 46px; }
.sup-name { font-weight: 700; font-size: 15px; color: #ecf0f1; }
.sup-email { font-size: 12px; color: #bcc7d2; word-break: break-all; }
.sup-badge { display: inline-block; margin-top: 4px; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.18); }
.sup-badge.ok { background: #1abb9c; } .sup-badge.wait { background: #f0ad4e; } .sup-badge.bad { background: #d9534f; }
.sup-nav { padding: 8px 0; display: flex; flex-direction: column; }
.sup-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 16px; color: #ecf0f1; font-size: 14px; text-decoration: none; border-left: 3px solid transparent; }
.sup-nav a i { font-size: 17px; color: #cfd8e3; width: 20px; text-align: center; }
.sup-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sup-nav a.active { background: #1abb9c; color: #fff; border-left-color: #fff; }
.sup-nav a.active i { color: #fff; }
.sup-badge-count { margin-left: auto; background: #f0ad4e; color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.sup-badge-ok { background: #1abb9c; color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.sup-badge-wait { background: #f0ad4e; color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.sup-sidebar-foot { border-top: 1px solid rgba(255,255,255,.1); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.sup-comm { font-size: 13px; color: #bcc7d2; }
.sup-logout { color: #ff9b9b; font-size: 14px; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.sup-logout:hover { text-decoration: underline; }

/* Page content (right_col) */
.sup-right-col { padding: 0 0 0 24px; }
.sup-page-title { font-size: 24px; font-weight: 600; color: #2a3f54; margin: 0 0 4px; }
.sup-page-sub { color: #73879c; font-size: 14px; margin: 0 0 18px; }

/* Tile stats (top tiles) */
.sup-tiles { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.sup-tile { flex: 1 1 180px; background: #fff; border: 1px solid #e6e9ed; border-radius: 4px; padding: 14px 18px; position: relative; overflow: hidden; }
.sup-tile .count_top { font-size: 13px; color: #73879c; display: block; margin-bottom: 6px; }
.sup-tile .count_top i { margin-right: 6px; }
.sup-tile .count { font-size: 30px; font-weight: 700; line-height: 1; }
.sup-tile .count.green { color: #1abb9c; } .sup-tile .count.red { color: #d9534f; } .sup-tile .count.blue { color: #3498db; } .sup-tile .count.orange { color: #f0ad4e; }
.sup-tile .count.blue2 { color: #1976d2; }

/* x_panel */
.sup-xpanel { background: #fff; border: 1px solid #e6e9ed; border-radius: 4px; margin-bottom: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.sup-xpanel .x_title { border-bottom: 2px solid #e6e9ed; padding: 12px 18px; display: flex; align-items: center; }
.sup-xpanel .x_title h2 { font-size: 17px; font-weight: 600; margin: 0; color: #2a3f54; }
.sup-xpanel .x_title small { color: #73879c; font-weight: 400; margin-left: 6px; }
.sup-xpanel .x_title .x_tools { margin-left: auto; font-size: 13px; color: #73879c; }
.sup-xpanel .x_content { padding: 16px 18px; }

/* Tables inside panels */
.sup-xpanel table { margin-bottom: 0; }
.sup-xpanel .table thead th { background: #f8fafc; color: #2a3f54; font-weight: 600; border-bottom: 2px solid #e6e9ed; }
.img-thumb-proof { max-width: 110px; max-height: 80px; border: 1px solid #e6e9ed; border-radius: 3px; }

/* Settlement / alert inside panel */
.sup-settle-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.sup-settle-row .big { font-size: 22px; font-weight: 700; }
.sup-settle-row .small { color: #73879c; font-size: 13px; }
.sup-settle-row .right { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* Settings form */
.sup-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sup-form-grid .full, .sup-form-grid .full-width { grid-column: 1 / -1; }
.sup-form-grid label { font-weight: 600; font-size: 14px; margin-bottom: 5px; display: block; }
.sup-form-grid input[type=text], .sup-form-grid input[type=email], .sup-form-grid input[type=password], .sup-form-grid input[type=month], .sup-form-grid input[type=file] {
    width: 100%; height: 46px; padding: 10px 12px; border: 1px solid #d9dee4; border-radius: 4px; font-size: 14px; background: #fff;
}
.sup-form-grid input:focus { outline: none; border-color: #1abb9c; box-shadow: 0 0 0 2px rgba(26,187,156,.15); }
.sup-form-grid input[type=file] { padding: 9px; border-style: dashed; background: #f7faf9; }
.sup-biz-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.sup-biz-row label { display: flex; align-items: center; gap: 8px; border: 1px solid #d9dee4; border-radius: 6px; padding: 10px 14px; background: #fff; font-weight: 500; cursor: pointer; }
.sup-biz-row input { width: 16px; height: 16px; accent-color: #1abb9c; }

.sup-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.sup-filter-bar .form-control { width: auto; }

@media (max-width: 860px) {
    .sup-admin-layout { flex-direction: column; }
    .sup-admin-layout .sup-side-col { width: 100%; flex: none; position: static; }
    .sup-right-col { padding-left: 0; }
    .sup-form-grid { grid-template-columns: 1fr; }
}
