/**
 * New Rooney Enterprise ERP System
 * Powered by SKYRHRG Technologies Systems
 * Application Utility Styles & ERP Design System Tokens (Compatible with DreamsPOS v2)
 */

:root {
    --erp-primary: #FF9F43;
    --erp-primary-dark: #e8892e;
    --erp-secondary: #0d9488;
    --erp-accent: #7638ff;
    --erp-success: #28C76F;
    --erp-warning: #FF9F43;
    --erp-danger: #EA5455;
    --erp-info: #00cfe8;

    --erp-radius-sm: 6px;
    --erp-radius-md: 10px;
    --erp-radius-lg: 14px;
    --erp-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --erp-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
    --erp-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
}

/* Brand Badges */
.brand-badge {
    width: 36px;
    height: 36px;
    border-radius: var(--erp-radius-sm);
    background: linear-gradient(135deg, #FF9F43, #e8892e);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(255, 159, 67, 0.4);
}

/* Page Header Box */
.page-title-box {
    margin-bottom: 1.5rem;
}

.page-title-box h1 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.page-title-box .subtitle {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

/* ERP Custom Cards & Panels */
.erp-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: var(--erp-radius-md);
    box-shadow: var(--erp-shadow-sm);
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.erp-card:hover {
    box-shadow: var(--erp-shadow-md);
}

.erp-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafbfd;
    border-top-left-radius: var(--erp-radius-md);
    border-top-right-radius: var(--erp-radius-md);
}

.erp-card-header h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #212529;
}

.erp-card-body {
    padding: 1.25rem;
}

/* KPI Metric Cards */
.kpi-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: var(--erp-radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--erp-shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--erp-shadow-md);
}

.kpi-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--erp-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.kpi-icon-primary {
    background: rgba(255, 159, 67, 0.15);
    color: #FF9F43;
}

.kpi-icon-success {
    background: rgba(40, 199, 111, 0.15);
    color: #28C76F;
}

.kpi-icon-warning {
    background: rgba(255, 159, 67, 0.15);
    color: #FF9F43;
}

.kpi-icon-info {
    background: rgba(0, 207, 232, 0.15);
    color: #00cfe8;
}

.kpi-content {
    flex: 1;
}

.kpi-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}

.kpi-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
}

.kpi-subtext {
    font-size: 0.75rem;
    color: #adb5bd;
    margin-top: 0.25rem;
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    line-height: 1;
}

.status-pill-success {
    background: #dcfce7;
    color: #15803d;
}

.status-pill-warning {
    background: #fef3c7;
    color: #b45309;
}

.status-pill-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.status-pill-info {
    background: #e0f2fe;
    color: #0369a1;
}

.status-pill-secondary {
    background: #f1f5f9;
    color: #475569;
}

/* ERP Tables */
.table-erp {
    margin: 0;
}

.table-erp thead th {
    background: #f8fafc;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e9ecef;
    padding: 0.85rem 1rem;
}

.table-erp tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    font-size: 0.875rem;
    border-bottom: 1px solid #f1f5f9;
}

.table-erp tbody tr:hover {
    background-color: #f8fafc;
}

/* Footer in DreamsPOS wrapper */
.page-footer {
    padding: 1.25rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Auth Split Layout & Vector Graphic Styling */
.login-wrapper .login-img {
    background: #0d1527;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper .login-img img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
}

/* Operator AVRR Badge Card */
.operator-badge-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.operator-badge-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.operator-badge-card .avatar img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* ======================================================== */
/* DreamsPOS v2 Catalog Search & Table Filters System       */
/* ======================================================== */
.table-list-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

.table-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.search-set {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.search-set .search-input {
    position: relative;
    min-width: 280px;
    max-width: 440px;
    flex: 1;
}

.search-set .search-input input[type="search"],
.search-set .search-input input[type="text"] {
    height: 40px;
    border: 1px solid #dcdfe4;
    border-radius: 8px;
    padding-left: 38px;
    padding-right: 36px;
    font-size: 0.875rem;
    background: #ffffff;
    transition: all 0.2s ease;
}

.search-set .search-input input:focus {
    border-color: #FF9F43;
    box-shadow: 0 0 0 3px rgba(255, 159, 67, 0.15);
}

.search-set .search-input .btn-searchset {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 0;
    color: #6c757d;
    pointer-events: none;
}

.search-set .search-input .btn-clear-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 0;
    color: #adb5bd;
    cursor: pointer;
    display: none;
}

.search-set .search-input .btn-clear-search:hover {
    color: #495057;
}

.search-path .btn-filter {
    background: #FF9F43;
    color: #ffffff;
    border: 0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.search-path .btn-filter:hover {
    background: #e8892e;
    color: #ffffff;
}

.search-path .btn-filter.active {
    background: #7638FF;
}

.quick-filter-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.quick-filter-pill {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.quick-filter-pill:hover,
.quick-filter-pill.active {
    background: #FF9F43;
    border-color: #FF9F43;
    color: #ffffff;
}

.search-highlight {
    background-color: #fef08a;
    color: #854d0e;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 600;
}

.filter-drawer-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

/* ======================================================== */
/* DreamsPOS v2 Pagination Styles                           */
/* ======================================================== */
.table-footer {
    background: #ffffff;
}

.pagination {
    margin: 0;
    gap: 4px;
}

.pagination .page-item .page-link {
    color: #4b5563;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 5px 11px;
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease-in-out;
}

.pagination .page-item:hover:not(.disabled):not(.active) .page-link {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}

.pagination .page-item.active .page-link {
    background-color: #FF9F43;
    border-color: #FF9F43;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(255, 159, 67, 0.35);
}

.pagination .page-item.disabled .page-link {
    color: #9ca3af;
    background-color: #f9fafb;
    border-color: #e5e7eb;
    opacity: 0.7;
    pointer-events: none;
}

/* ======================================================== */
/* Brand Logo SVG Enhancements                              */
/* ======================================================== */
.header .header-left .logo {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.header .header-left .logo img {
    height: 38px;
    width: auto;
    max-width: 175px;
    object-fit: contain;
    transition: all 0.2s ease;
}

.header .header-left .logo-small {
    display: none;
}

.header .header-left .logo-small img {
    height: 34px;
    width: 34px;
    object-fit: contain;
}

.login-wrapper .login-content .login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 240px;
    margin: 0 auto 16px auto;
}

.login-wrapper .login-content .login-logo img {
    height: 52px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
    margin-bottom: 0;
}



