body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
}
.header {
    background: #000b54;
    padding: 20px;
}

#main_nav {
    margin: 0 auto;
}

#main_nav li {
    margin: 0 8px;
}

.another-options li {
    list-style: none;
    display: inline-block;
    color: #ffffff;
    margin: 0 8px;
}

.another-options {
    display: inline-table;
    vertical-align: middle;
    margin: 0;
    padding: 14px 0;
}

.footer {
    background: #000356;
    padding: 40px;
    border-top: 2px solid #ff4e14;
    color: #ffffff;
}

.footer-menu li {
    list-style: none;
}

.footer-menu {
    padding: 0;
}

.footer a, .footer a:visited {
    text-decoration: none;
    color: #ffffff9e;
}

.footer a:hover {
    opacity: 0.8;
}

.card-shadow {
    -webkit-box-shadow: 5px 5px 14px -7px rgba(0,0,0,0.18);
    -moz-box-shadow: 5px 5px 14px -7px rgba(0,0,0,0.18);
    box-shadow: 5px 5px 14px -7px rgba(0,0,0,0.18);
    margin-bottom: 40px;
    border: 0;
    border-radius: 10px;
}

.btn-cart {
    display: block;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    padding: 8px;
    background: #ff4e14;
    text-decoration: none;
    color: #ffffff;
    border-radius: 5px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.btn-orange, .btn-orange2 {
    background: #ff4e14;
    text-decoration: none;
    color: #ffffff;
    border-radius: 5px;
}

.btn-cart:hover, .btn-orange:hover {
    color: #ffffff;
    opacity: 1.0;
    background: #000b54;
}

.btn-orange2:hover {
    color: #ffffff;
    opacity: 0.75;
}

.home-content {
    padding: 50px 0;
    background: rgb(230,233,235);
    background: linear-gradient(0deg, rgba(230,233,235,1) 0%, rgba(255,255,255,1) 100%);
    border-bottom:4px solid #FFFFFF;
}

.login-info-bar {
    text-align: right;
    font-size: 12px;
    padding: 8px;
    background: rgb(230,233,235);
    background: linear-gradient(0deg, rgba(230,233,235,1) 0%, rgba(255,255,255,1) 100%);
    border-bottom:2px solid #FFFFFF;
        
}

.login-info-bar a, .login-info-bar:visited {
    text-decoration: none;
    color: #ff4e14;
}

.login-info-bar a:hover {
    text-decoration: underline;
    opacity: 0.8;
}
.header-cart-options {
    text-align: right;
}

.box-content {
    padding: 50px 0;
}
.another-options a, .another-options:visited {
    color: #ffffff;
    text-decoration: none;
}

.another-options a:hover {
    opacity: 0.75;
}

.home-content h1 {
    color: #000356;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 1.7em;
    font-weight: bold;
}

.product-filters {
    background: #dfdfdf;
    padding: 20px;
}

.breadcrumb {
    font-size: 0.8em;
}

.breadcrumb a, .breadcrumb a:visited {
    color: #ff4e14;   
}

.breadcrumb a:hover {
    color: #000356;
}


.cart-summary {
    font-size: 0.9em;
}

.cart-summary h1 {
    font-size: 1.1em;
}

.accordion-button:not(.collapsed) {
    background-color: #000356;
    color: #FFFFFF;
}

.cart-summary {
    box-sizing: border-box;
    padding: 20px;
}

.home-content h2 {
    color: #000356;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: bold;
}

.list-group-item {
    font-size: 0.8em;
}

.home-content {
    min-height: 540px;
}

.logo img:hover {
    opacity: 0.75;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 1);
}
.img-gallery img {
    border: 4px solid #FFFFFF;
}

.img-gallery {
    margin-bottom: 10px;
}

.thumb-product {
    border:1px solid #CCCCCC;
}

.price {
    font-size: 1.9em;
}

.box-price {
    color: green;
    font-weight: bold;
}

.product-picture {
    position: relative;
}

.product-picture .overlay {
    visibility: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
   /* background-color: #000b54;*/
    z-index: 99;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s linear;
    border-radius: 8px 8px 0 0;
    color: #000356;
    padding: 20%;
    box-sizing: border-box;
    text-shadow: 1px 2px 2px rgba(255, 255, 255, 0.6);
    font-weight: bold;
    text-transform: uppercase;
}

.product-picture a:hover > .overlay {
    top: 0;
    opacity: 1;
    visibility: visible;
}

.product-picture a:hover img {
    opacity: 0.25;
}

.product-picture a img {
    opacity: 1;
    transition: opacity 0.5s linear;
}

.header-menu {
    background: #dd4513;
}

.header-menu ul:not(.dropdown-menu) {
    list-style: none;
    display: flex;
    flex-direction: row;
    padding-left: 0;
    margin-bottom: 0;
}

.header-menu .dropdown-menu {
    background-color: #dd4513;
    color: #FFFFFF;
}

.header-menu .dropdown-item:focus, .header-menu .dropdown-item:hover {
    opacity: 0.75;
    background: rgba(170, 54, 16, 1);
}

.header-menu ul li.nav-title {
    color:#FFFFFF;
    box-sizing: border-box;
    padding: 8px 30px 0 0;
    font-weight: bold;
    border-radius: 0 46px 0 0;
    background: rgb(221,69,19);
    background: linear-gradient(90deg, rgba(221,69,19,1) 0%, rgba(170,54,16,1) 100%);
    -webkit-box-shadow: 10px 0px 18px -5px rgba(0,0,0,0.59);
    -moz-box-shadow: 10px 0px 18px -5px rgba(0,0,0,0.59);
    box-shadow: 10px 0px 18px -5px rgba(0,0,0,0.59);
}

.header-menu ul li.nav-item a {
    color: rgba(255, 255, 255, 1);
}

.header-menu ul li.nav-item a:before {
    content: "|";
    position: relative;
    left: -15px;
    float: inherit;
    margin-top: 15px;
}

.header-menu ul li.nav-item-first a::before, .header-menu .dropdown-item::before{
    content: "" !important;
}

.header-menu ul li.nav-item a.nav-link:hover {
    opacity: 0.75;
    background: rgba(170,54,16,1)
}

.conta-links a, .conta-links a:visited {
    color: #333333;
    text-decoration: none;
}

.form-volda .form-group {
    margin: 10px 0;
}

.box-novo-usuario {
    background: #FFFFFF;
    border:1px solid #CCCCCC;
    padding: 50px;
    margin: 50px 0;
}

.form-search {
    /*margin-top:20px;*/
}

.group-search-box {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    color: white;
}

.page-item.active .page-link {
    background-color: #000356;
    border-color: #ffffff;
}

.page-link {
    color: #000356;
}

.custom-file-input::-webkit-file-upload-button {
    visibility: hidden;
  }
  .custom-file-input::before {
    content: 'Importar arquivo';
    display: inline-block;
    background: linear-gradient(top, #f9f9f9, #e3e3e3);
    border: 1px solid #999;
    border-radius: 3px;
    padding: 5px 8px;
    outline: none;
    white-space: nowrap;
    -webkit-user-select: none;
    cursor: pointer;
    text-shadow: 1px 1px #fff;
    font-weight: 700;
    font-size: 10pt;
  }
  .custom-file-input:hover::before {
    border-color: black;
  }
  .custom-file-input:active::before {
    background: -webkit-linear-gradient(top, #e3e3e3, #f9f9f9);
  }
  .custom-file-input {
    width: 150px;
    overflow:hidden;
}

.btn-search-type {
    padding: 4px 8px;
    background: #494f77;
    color: white;
    text-decoration: none;
    margin-right: 1px;
}

.btn-search-type-active {
    background-color: #FFFFFF;
    color: #000b54 !important;
}
.search-term-inputs {
    border: 0;
}

.group-search-box {
    position: relative;
    top: 3px;
}

.btn-search-type:hover {
    background-color: #000356;
    color: white !important;
}

.badge-pill {
    padding-right: 0.6em;
    padding-left: 0.6em;
}

.badge-default, .badge-pendente_aprovacao {
    background-color: #b0bec5;
}

.badge-default[href]:focus,
.badge-default[href]:hover {
    background-color: #93a6af;
}

.badge-primary {
    background-color: #000b54;
}

.badge-primary[href]:focus,
.badge-primary[href]:hover {
    background-color: #091668;
}

.badge-success, .badge-pago, .badge-faturado {
    background-color: #4dbd74;
}

.badge-success[href]:focus,
.badge-success[href]:hover {
    background-color: #3a9d5d;
}

.badge-info {
    background-color: #63c2de;
}

.badge-info[href]:focus,
.badge-info[href]:hover {
    background-color: #39b2d5;
}

.badge-warning, .badge-pendente {
    background-color: #f8cb00;
}

.badge-warning[href]:focus,
.badge-warning[href]:hover {
    background-color: #c5a100;
}

.badge-danger {
    background-color: #f86c6b;
}

.badge-danger[href]:focus,
.badge-danger[href]:hover {
    background-color: #f63c3a;
}

:root {
    --brand: #e46317;
    --brand-600: #cc5613;
    --brand-100: #fef3ed;
    --bg-soft: #f8f9fb;
    --sidebar-width: 280px;
    --header-height: 70px;
  }

  body { 
    background: var(--bg-soft); 
    margin: 0;
  }

  /* ===== PORTAL LAYOUT ===== */
  .portal-wrapper {
    display: flex;
    min-height: calc(100vh - 60px);
  }

  /* ===== SIDEBAR ===== */
  .portal-sidebar {
    width: var(--sidebar-width);
    background: #fff;
    border-right: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    height: calc(100vh - 60px);
    overflow-y: auto;
    flex-shrink: 0;
  }

  .sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #e5e7eb;
  }

  .company-info {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .company-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
  }

  .company-details h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 2px 0;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .company-details span {
    font-size: 12px;
    color: #6b7280;
  }

  .sidebar-nav {
    padding: 16px 12px;
  }

  .nav-section {
    margin-bottom: 24px;
  }

  .nav-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    padding: 0 12px;
    margin-bottom: 8px;
  }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    position: relative;
  }

  .nav-item:hover {
    background: #f3f4f6;
    color: #1f2937;
    text-decoration: none;
  }

  .nav-item.active {
    background: var(--brand-100);
    color: var(--brand);
  }

  .nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--brand);
    border-radius: 0 3px 3px 0;
  }

  .nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
  }

  .nav-badge {
    margin-left: auto;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
  }

  .nav-badge.warning {
    background: #f59e0b;
  }

  .nav-badge.info {
    background: #3b82f6;
  }

  /* ===== MAIN CONTENT ===== */
  .portal-main {
    flex: 1;
    padding: 32px;
    overflow-x: hidden;
  }

  .welcome-section {
    margin-bottom: 32px;
  }

  .welcome-section h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
  }

  .welcome-section p {
    color: #6b7280;
    margin: 0;
    font-size: 15px;
  }

  /* ===== KPI CARDS ===== */
  .kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
  }

  .kpi-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
  }

  .kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-decoration: none;
  }

  .kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  .kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }

  .kpi-icon.documents { background: #dbeafe; color: #2563eb; }
  .kpi-icon.quotes { background: #fef3c7; color: #d97706; }
  .kpi-icon.orders { background: #d1fae5; color: #059669; }
  .kpi-icon.invoices { background: #ede9fe; color: #7c3aed; }

  .kpi-value {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
  }

  .kpi-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
  }

  .kpi-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    font-size: 13px;
  }

  .kpi-trend {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .kpi-trend.up { color: #059669; }
  .kpi-trend.down { color: #dc2626; }
  .kpi-trend.pending { color: #d97706; }

  /* ===== ACTION CARDS ===== */
  .section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px 0;
  }

  .action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
  }

  .action-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
  }

  .action-card:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-decoration: none;
  }

  .action-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
  }

  .action-icon.upload { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: #fff; }
  .action-icon.quote { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: #fff; }
  .action-icon.support { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); color: #fff; }
  .action-icon.profile { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #fff; }

  .action-content h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 6px 0;
  }

  .action-content p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
  }

  /* ===== RECENT ACTIVITY ===== */
  .content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
  }

  @media (max-width: 1200px) {
    .content-grid {
      grid-template-columns: 1fr;
    }
  }

  .card-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
  }

  .card-panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .card-panel-header h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
  }

  .card-panel-header a {
    font-size: 13px;
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
  }

  .card-panel-header a:hover {
    text-decoration: underline;
  }

  .activity-list {
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 24px;
    border-bottom: 1px solid #f9fafb;
    transition: background 0.15s ease;
  }

  .activity-item:hover {
    background: #fafafa;
  }

  .activity-item:last-child {
    border-bottom: none;
  }

  .activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
  }

  .activity-icon.doc { background: #dbeafe; color: #2563eb; }
  .activity-icon.order { background: #d1fae5; color: #059669; }
  .activity-icon.quote { background: #fef3c7; color: #d97706; }
  .activity-icon.invoice { background: #ede9fe; color: #7c3aed; }

  .activity-content {
    flex: 1;
    min-width: 0;
  }

  .activity-title {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .activity-meta {
    font-size: 12px;
    color: #9ca3af;
  }

  .activity-status {
    flex-shrink: 0;
  }

  .status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .status-badge.pending { background: #fef3c7; color: #92400e; }
  .status-badge.approved { background: #d1fae5; color: #065f46; }
  .status-badge.rejected { background: #fee2e2; color: #991b1b; }
  .status-badge.processing { background: #dbeafe; color: #1e40af; }

  /* ===== ALERTS ===== */
  .alerts-list {
    padding: 16px;
  }

  .alert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
  }

  .alert-item:last-child {
    margin-bottom: 0;
  }

  .alert-item.urgent {
    background: #fef2f2;
    border-color: #fecaca;
  }

  .alert-item.warning {
    background: #fffbeb;
    border-color: #fde68a;
  }

  .alert-item.info {
    background: #eff6ff;
    border-color: #bfdbfe;
  }

  .alert-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
  }

  .alert-item.urgent .alert-icon { background: #fee2e2; color: #dc2626; }
  .alert-item.warning .alert-icon { background: #fef3c7; color: #d97706; }
  .alert-item.info .alert-icon { background: #dbeafe; color: #2563eb; }

  .alert-content h6 {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
  }

  .alert-content p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 991px) {
    .portal-sidebar {
      display: none;
    }

    .portal-main {
      padding: 20px;
    }

    .welcome-section h1 {
      font-size: 24px;
    }
  }

  /* Mobile Navigation */
  .mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  }

  @media (max-width: 991px) {
    .mobile-nav {
      display: block;
    }

    .portal-wrapper {
      padding-bottom: 70px;
    }
  }

  .mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
  }

  .mobile-nav-item i {
    font-size: 20px;
  }

  .mobile-nav-item.active {
    color: var(--brand);
  }

  .mobile-nav-item:hover {
    color: var(--brand);
    text-decoration: none;
  }

  /* Empty state */
  .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
  }

  .empty-state i {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
  }

  .empty-state h5 {
    color: #374151;
    margin-bottom: 8px;
  }