/* RESET */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    background: #f4f4f5;
}

/* LAYOUT WRAPPER */
.khub-layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.khub-sidebar {
    width: 240px;
    /*background: #0f172a;*/
    background: rgb(0, 130, 202);
    background-color: rgb(0, 130, 202);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    position: fixed;
    height: 100vh;
    box-shadow: 2px 0 4px rgba(0,0,0,0.3);
}

.khub-logo {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 2rem;
}

/* MENU */
.khub-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.khub-nav li {
    margin-bottom: .8rem;
}

.khub-nav a {
    color: #e2e8f0;
    text-decoration: none;
    padding: .5rem .75rem;
    display: block;
    border-radius: 6px;
    transition: 0.2s;
}

    .khub-nav a:hover {
        background: #1e293b;
    }

    .khub-nav a.active {
        background: #475569;
        font-weight: bold;
    }

/* SIDEBAR COLLAPSIBLE GROUP */
.khub-nav-toggle {
    background: none;
    border: none;
    color: #e2e8f0;
    padding: .5rem .75rem;
    display: flex;
    align-items: center;
    width: 100%;
    border-radius: 6px;
    transition: background 0.2s;
    cursor: pointer;
    font-size: 1rem;
    text-align: left;
}

.khub-nav-toggle:hover {
    background: #1e293b;
}

.khub-nav-toggle.open {
    background: rgba(255, 255, 255, 0.1);
}

.khub-nav-chevron {
    margin-left: auto;
    font-size: 0.75rem;
}

.khub-nav-sub {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0 0;
}

.khub-nav-sub li {
    margin-bottom: 0.2rem;
}

.khub-nav-sub a {
    padding: .35rem .75rem .35rem 1.75rem;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.khub-nav-sub a:hover {
    background: #1e293b;
}

.khub-nav-sub a.active {
    background: #475569;
    font-weight: bold;
}

/* MAIN AREA */
.khub-main {
    margin-left: 240px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* TOPBAR */
.khub-topbar {
    background: #e5e7eb;
    padding: .75rem 1rem;
    border-bottom: 1px solid #cbd5e1;
    display: flex;
    justify-content: flex-end;
}

.khub-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.khub-link {
    color: #1e40af;
    text-decoration: none;
}

    .khub-link:hover {
        text-decoration: underline;
    }

.khub-logout {
    background: none;
    border: none;
    color: #dc2626;
    font-weight: bold;
    cursor: pointer;
}

    .khub-logout:hover {
        text-decoration: underline;
    }

/* PAGE CONTENT */
.khub-content {
    padding: 2rem;
}

/* FOOTER */
.klog-footer {
    background-color: #0a1f44;
    color: #ffffff;
    padding: 2.5rem 2rem 1rem;
    margin-top: auto;
    font-size: 0.8rem;
}

.klog-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.klog-footer-columns {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.klog-footer-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 140px;
    border-left: 1px solid #1e3a6e;
    padding-left: 1rem;
}

.klog-footer-col:first-child {
    border-left: none;
    padding-left: 0;
    flex: 0 0 220px;
}

.klog-footer-col h6 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #93c5fd;
    margin: 0 0 6px 0;
    letter-spacing: 0.05em;
}

.klog-footer-col a {
    color: #ffffff;
    text-decoration: none;
    line-height: 1.6;
}

    .klog-footer-col a:hover {
        color: #93c5fd;
    }

.klog-footer-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

    .klog-footer-logos img {
        width: 52px;
        height: auto;
    }

.klog-footer-legal {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.klog-footer-separator {
    border: none;
    border-top: 1px solid #1e3a6e;
    margin: 1.5rem 0 1rem;
}

.klog-footer-social {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

    .klog-footer-social a {
        color: #ffffff;
        opacity: 0.8;
        transition: opacity 0.2s;
    }

        .klog-footer-social a:hover {
            opacity: 1;
        }

.klog-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.klog-footer-bottom-logo img {
    opacity: 0.85;
}

.klog-footer-bottom-copy {
    color: #94a3b8;
    font-size: 0.78rem;
}

.klog-footer-bottom-gb a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
}

    .klog-footer-bottom-gb a:hover {
        color: #93c5fd;
    }

/* PAGE HEAD */
.page-head h2 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: .15rem;
    color: #212529;
}

.page-head .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    list-style: none;
}

.page-head .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 .4rem;
    color: #6c757d;
}

/* SUPPLIER DETAIL */
.supplier-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.supplier-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0 1.25rem;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0;
    list-style: none;
}

.supplier-tabs .nav-link {
    color: #495057;
    padding: .65rem 1rem;
    border: none;
    border-radius: 0;
    font-size: 0.95rem;
}

.supplier-tabs .nav-link.active {
    color: #212529;
    font-weight: 600;
    background: none;
    border-bottom: 2px solid #212529;
}

.supplier-tab-content {
    padding: 1.5rem;
}

.supplier-panel {
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.supplier-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .6rem 1rem;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    background: #f8f9fa;
    font-size: 0.9rem;
}

.supplier-panel-body {
    padding: 1rem 1.25rem .25rem;
}

/* Campo estilo Material: label cinzento + valor com underline pontilhado */
.sf-group {
    margin-bottom: .9rem;
}

.sf-label {
    font-size: 0.72rem;
    color: #6c757d;
    margin-bottom: 1px;
    line-height: 1.2;
}

.sf-value {
    font-size: 0.9rem;
    color: #212529;
    padding-bottom: 5px;
    border-bottom: 1px dotted #adb5bd;
    min-height: 22px;
    line-height: 1.5;
}

/* DROP ZONE */
.drop-zone {
    border: 2px dashed #ced4da;
    border-radius: 6px;
    padding: 1.5rem 1rem;
    text-align: center;
    background: #fafafa;
    transition: background 0.2s, border-color 0.2s;
    position: relative;
    cursor: pointer;
}

.drop-zone.dz-over {
    background: #e8f4fd;
    border-color: #0082ca;
}

.drop-zone .drop-zone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drop-zone .drop-zone-label {
    pointer-events: none;
    color: #6c757d;
    font-size: 0.9rem;
}

/* MOBILE (sidebar colapsada) */
@media(max-width: 768px) {
    .khub-sidebar {
        width: 200px;
        position: absolute;
        z-index: 1000;
        transform: translateX(-200px);
        transition: transform 0.3s;
    }

        .khub-sidebar.open {
            transform: translateX(0);
        }

    .khub-main {
        margin-left: 0;
    }
}