/**
 * Golmoti Shipment & Logistics Manager - SaaS Admin Stylesheet
 * Prefix: .golmoti-
 */

:root {
    --gm-primary: #3b82f6;
    --gm-primary-hover: #2563eb;
    --gm-primary-light: #eff6ff;
    --gm-secondary: #64748b;
    --gm-secondary-hover: #475569;
    --gm-bg: #f8fafc;
    --gm-card-bg: #ffffff;
    --gm-border: #e2e8f0;
    --gm-border-focus: #93c5fd;
    --gm-text-main: #0f172a;
    --gm-text-muted: #64748b;
    --gm-text-light: #94a3b8;
    
    /* Semantic Colors */
    --gm-emerald: #10b981;
    --gm-emerald-light: #ecfdf5;
    --gm-purple: #8b5cf6;
    --gm-purple-light: #f5f3ff;
    --gm-sky: #0ea5e9;
    --gm-sky-light: #f0f9ff;
    --gm-amber: #f59e0b;
    --gm-amber-light: #fffbeb;
    --gm-rose: #ef4444;
    --gm-rose-light: #fef2f2;
    --gm-indigo: #6366f1;
    --gm-indigo-light: #eef2ff;
    --gm-cyan: #06b6d4;
    --gm-cyan-light: #ecfeff;
    --gm-orange: #ea580c;
    --gm-orange-light: #fff7ed;
    
    /* Elevations */
    --gm-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --gm-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --gm-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --gm-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Radius */
    --gm-radius-sm: 6px;
    --gm-radius-md: 10px;
    --gm-radius-lg: 14px;
    --gm-radius-full: 9999px;
}

/* ==========================================================================
   Base & SaaS Container Layout
   ========================================================================== */
.golmoti-admin-wrap {
    margin: 16px 20px 0 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--gm-text-main);
    box-sizing: border-box;
}

.golmoti-admin-wrap *,
.golmoti-admin-wrap *::before,
.golmoti-admin-wrap *::after {
    box-sizing: border-box;
}

.golmoti-saas-container {
    display: flex;
    min-height: calc(100vh - 80px);
    background: var(--gm-bg);
    border-radius: var(--gm-radius-lg);
    border: 1px solid var(--gm-border);
    box-shadow: var(--gm-shadow-md);
    overflow: hidden;
}

/* ==========================================================================
   Sidebar Navigation (15 items)
   ========================================================================== */
.golmoti-sidebar {
    width: 250px;
    background: #0f172a;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid #1e293b;
}

.golmoti-brand {
    padding: 20px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #1e293b;
}

.golmoti-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--gm-radius-md);
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.golmoti-brand-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.golmoti-brand-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
    display: block;
    line-height: 1.2;
}

.golmoti-brand-badge {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.golmoti-nav {
    flex: 1;
    padding: 12px 8px;
    overflow-y: auto;
}

.golmoti-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.golmoti-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--gm-radius-sm);
    transition: all 0.15s ease-in-out;
}

.golmoti-nav li a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.golmoti-nav li.active a {
    background: var(--gm-primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

.golmoti-nav li a .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: inherit;
}

.golmoti-sidebar-footer {
    padding: 14px 18px;
    border-top: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.golmoti-version-tag {
    font-size: 11.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator.online {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* ==========================================================================
   Main Content & Topbar
   ========================================================================== */
.golmoti-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    min-width: 0;
}

.golmoti-topbar {
    background: #ffffff;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.golmoti-page-heading {
    font-size: 19px;
    font-weight: 700;
    color: var(--gm-text-main);
    margin: 0;
    letter-spacing: -0.3px;
}

.golmoti-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.golmoti-content-area {
    padding: 20px 24px;
    flex: 1;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.golmoti-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--gm-radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    line-height: 1;
}

.golmoti-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.golmoti-btn-primary {
    background: var(--gm-primary);
    color: #ffffff !important;
    box-shadow: var(--gm-shadow-sm);
}

.golmoti-btn-primary:hover {
    background: var(--gm-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--gm-shadow-md);
}

.golmoti-btn-secondary {
    background: #ffffff;
    border-color: var(--gm-border);
    color: var(--gm-text-main) !important;
}

.golmoti-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.golmoti-btn-outline {
    background: transparent;
    border-color: var(--gm-border);
    color: var(--gm-text-main);
}

.golmoti-btn-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.golmoti-btn-sm {
    padding: 6px 11px;
    font-size: 12px;
}

.golmoti-btn-xs {
    padding: 4px 7px;
    font-size: 11.5px;
    border-radius: 4px;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.golmoti-card {
    background: var(--gm-card-bg);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-md);
    box-shadow: var(--gm-shadow-sm);
    padding: 18px;
    margin-bottom: 18px;
}

.golmoti-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.golmoti-card-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--gm-text-main);
    margin: 0 0 4px 0;
}

.golmoti-card-subtitle {
    font-size: 12.5px;
    color: var(--gm-text-muted);
    margin: 0;
}

/* ==========================================================================
   Metrics Grid & Stat Cards (8 KPI Cards)
   ========================================================================== */
.golmoti-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.golmoti-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-left: 4px solid var(--gm-border);
    margin-bottom: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.golmoti-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--gm-shadow-md);
}

.golmoti-stat-card.primary { border-left-color: var(--gm-primary); }
.golmoti-stat-card.amber   { border-left-color: var(--gm-amber); }
.golmoti-stat-card.indigo  { border-left-color: var(--gm-indigo); }
.golmoti-stat-card.purple  { border-left-color: var(--gm-purple); }
.golmoti-stat-card.sky     { border-left-color: var(--gm-sky); }
.golmoti-stat-card.emerald { border-left-color: var(--gm-emerald); }
.golmoti-stat-card.orange  { border-left-color: var(--gm-orange); }
.golmoti-stat-card.rose    { border-left-color: var(--gm-rose); }

.stat-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: var(--gm-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

.stat-icon-wrap .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.primary .stat-icon-wrap { background: var(--gm-primary-light); color: var(--gm-primary); }
.amber   .stat-icon-wrap { background: var(--gm-amber-light); color: var(--gm-amber); }
.indigo  .stat-icon-wrap { background: var(--gm-indigo-light); color: var(--gm-indigo); }
.purple  .stat-icon-wrap { background: var(--gm-purple-light); color: var(--gm-purple); }
.sky     .stat-icon-wrap { background: var(--gm-sky-light); color: var(--gm-sky); }
.emerald .stat-icon-wrap { background: var(--gm-emerald-light); color: var(--gm-emerald); }
.orange  .stat-icon-wrap { background: var(--gm-orange-light); color: var(--gm-orange); }
.rose    .stat-icon-wrap { background: var(--gm-rose-light); color: var(--gm-rose); }

.stat-label {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--gm-text-muted);
    margin-bottom: 2px;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--gm-text-main);
    line-height: 1.1;
}

/* ==========================================================================
   Status Breakdown Strip
   ========================================================================== */
.golmoti-status-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.golmoti-status-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: var(--gm-radius-full);
    background: #f1f5f9;
    color: var(--gm-text-main);
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 500;
    transition: all 0.15s ease;
    border: 1px solid var(--gm-border);
}

.golmoti-status-pill-item:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.pill-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 1px 5px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 10.5px;
}

/* Orders Status Strip */
.golmoti-orders-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.golmoti-order-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--gm-radius-full);
    background: #f1f5f9;
    color: var(--gm-text-main);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--gm-border);
    transition: all 0.15s ease;
}

.golmoti-order-pill:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.golmoti-order-pill.active {
    background: var(--gm-primary);
    color: #ffffff;
    border-color: var(--gm-primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.golmoti-order-pill.active .pill-dot {
    background: #ffffff !important;
}

/* Settings Tabs Navigation */
.golmoti-settings-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--gm-radius-sm) var(--gm-radius-sm) 0 0;
    background: #f1f5f9;
    color: var(--gm-text-muted);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--gm-border);
    border-bottom: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.golmoti-settings-tab-btn:hover {
    background: #e2e8f0;
    color: var(--gm-text-main);
}

.golmoti-settings-tab-btn.active {
    background: var(--gm-primary);
    color: #ffffff;
    border-color: var(--gm-primary);
}

.settings-section-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--gm-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Toolbars & Filter Controls
   ========================================================================== */
.golmoti-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.golmoti-search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
    max-width: 440px;
}

.golmoti-search-box .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gm-text-light);
    font-size: 17px;
    pointer-events: none;
}

.golmoti-search-box .golmoti-input {
    padding-left: 34px;
    padding-right: 30px;
    width: 100%;
}

.golmoti-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 17px;
    color: var(--gm-text-light);
    cursor: pointer;
    padding: 0;
}

.golmoti-filters-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.golmoti-bulk-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--gm-border);
}

.bulk-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Form Inputs */
.golmoti-input,
.golmoti-select,
.golmoti-textarea {
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    background: #ffffff;
    color: var(--gm-text-main);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.golmoti-textarea {
    height: auto;
    padding: 8px 10px;
}

.golmoti-input:focus,
.golmoti-select:focus,
.golmoti-textarea:focus {
    border-color: var(--gm-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

.date-input { width: 130px; }
.date-sep { color: var(--gm-text-muted); }

/* ==========================================================================
   Data Table
   ========================================================================== */
.golmoti-table-responsive {
    overflow-x: auto;
    margin: 0 -18px;
    padding: 0 18px;
}

.golmoti-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.golmoti-table th {
    padding: 10px 12px;
    background: #f8fafc;
    color: var(--gm-text-muted);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--gm-border);
}

.golmoti-table td {
    padding: 12px 12px;
    border-bottom: 1px solid var(--gm-border);
    font-size: 13px;
    vertical-align: middle;
}

.golmoti-table tbody tr {
    transition: background 0.12s ease;
}

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

.text-right { text-align: right; }
.text-muted { color: var(--gm-text-muted); }
.text-sm { font-size: 12px; }
.font-bold { font-weight: 700; }

.customer-cell {
    display: flex;
    flex-direction: column;
}

.customer-name {
    font-weight: 600;
    color: var(--gm-text-main);
}

.customer-sub {
    font-size: 11.5px;
    color: var(--gm-text-muted);
}

.courier-tag {
    display: inline-block;
    padding: 2px 7px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
}

.awb-cell {
    display: flex;
    align-items: center;
    gap: 4px;
}

.awb-cell code {
    background: #f1f5f9;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
}

.golmoti-copy-btn {
    background: none;
    border: none;
    color: var(--gm-text-light);
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
}

.golmoti-copy-btn:hover { color: var(--gm-primary); }
.golmoti-copy-btn .dashicons { font-size: 14px; width: 14px; height: 14px; }

/* Badges */
.golmoti-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: var(--gm-radius-full);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: capitalize;
}

.badge-slate   { background: #f1f5f9; color: #475569; }
.badge-emerald { background: var(--gm-emerald-light); color: #047857; }
.badge-blue    { background: var(--gm-primary-light); color: #1d4ed8; }
.badge-indigo  { background: var(--gm-indigo-light); color: #4338ca; }
.badge-purple  { background: var(--gm-purple-light); color: #6d28d9; }
.badge-cyan    { background: var(--gm-cyan-light); color: #0e7490; }
.badge-sky     { background: var(--gm-sky-light); color: #0369a1; }
.badge-amber   { background: var(--gm-amber-light); color: #b45309; }
.badge-orange  { background: var(--gm-orange-light); color: #c2410c; }
.badge-rose    { background: var(--gm-rose-light); color: #b91c1c; }
.badge-gray    { background: #f3f4f6; color: #4b5563; }

.payment-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.payment-badge.prepaid { background: #ecfdf5; color: #059669; }
.payment-badge.cod     { background: #fffbeb; color: #d97706; }

/* Table Actions */
.table-actions-cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

/* Empty State */
.golmoti-empty-state {
    padding: 40px 18px;
    text-align: center;
}

.empty-icon {
    font-size: 38px;
    width: 38px;
    height: 38px;
    color: var(--gm-text-light);
    margin-bottom: 10px;
}

.golmoti-empty-state h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.golmoti-empty-state p {
    font-size: 13px;
    color: var(--gm-text-muted);
    margin: 0 0 16px 0;
}

/* Pagination */
.golmoti-pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--gm-border);
    margin-top: 6px;
}

.pagination-nav { display: flex; gap: 4px; }

.page-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gm-border);
    background: #ffffff;
    color: var(--gm-text-main);
    border-radius: var(--gm-radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.page-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.page-btn.active {
    background: var(--gm-primary);
    border-color: var(--gm-primary);
    color: #ffffff;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================================================
   Package Calculator Card in Modal
   ========================================================================== */
.package-calc-card {
    background: #f8fafc;
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-sm);
    padding: 12px 16px;
    margin-top: 4px;
}

.package-calc-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gm-text-main);
}

.package-inputs-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    align-items: end;
}

.volumetric-display {
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: #e2e8f0;
    border-radius: var(--gm-radius-sm);
    font-weight: 700;
    font-size: 12.5px;
    color: #1e293b;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.golmoti-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 100050;
    padding: 24px 16px;
    overflow-y: auto;
    box-sizing: border-box;
}

.golmoti-modal {
    background: #ffffff;
    border-radius: var(--gm-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    margin: auto 0;
    position: relative;
    animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    overflow: hidden;
}

.golmoti-modal form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    margin: 0;
}

@keyframes modalScaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.golmoti-modal-lg { max-width: 820px; }
.golmoti-modal-md { max-width: 600px; }
.golmoti-modal-sm { max-width: 440px; }

.golmoti-modal-header {
    padding: 16px 22px;
    border-bottom: 1px solid var(--gm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: #ffffff;
}

.golmoti-modal-header .header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.golmoti-modal-title { font-size: 16px; font-weight: 700; margin: 0; }

.golmoti-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gm-text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.golmoti-modal-close:hover { color: var(--gm-text-main); }

.golmoti-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    max-height: calc(100vh - 180px);
    box-sizing: border-box;
}

.golmoti-modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--gm-border);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

/* Form Grid */
.golmoti-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.golmoti-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.golmoti-form-group.full-width { grid-column: span 2; }

.golmoti-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gm-text-main);
}

.golmoti-label.required::after { content: " *"; color: var(--gm-rose); }
.field-hint { font-size: 11px; color: var(--gm-text-muted); }

/* ==========================================================================
   Visual Tracking Timeline
   ========================================================================== */
.golmoti-timeline {
    position: relative;
    padding-left: 28px;
    margin: 18px 0 10px 10px;
}

.golmoti-timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    padding-bottom: 18px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-node {
    position: absolute;
    left: -28px;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    z-index: 1;
}

.timeline-item.completed .timeline-node {
    border-color: var(--gm-emerald);
    background: var(--gm-emerald);
}

.timeline-item.active .timeline-node {
    border-color: var(--gm-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.timeline-status {
    font-size: 13px;
    font-weight: 700;
    color: var(--gm-text-main);
}

.timeline-date { font-size: 11.5px; color: var(--gm-text-muted); }

.timeline-location {
    font-size: 11.5px;
    font-weight: 500;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
}

.timeline-desc {
    font-size: 12.5px;
    color: var(--gm-text-muted);
    margin: 0;
}

/* ==========================================================================
   Details Grid in View Modal
   ========================================================================== */
.view-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: #f8fafc;
    padding: 14px;
    border-radius: var(--gm-radius-sm);
    border: 1px solid var(--gm-border);
    margin-bottom: 18px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gm-text-muted);
}

.detail-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--gm-text-main);
}

/* ==========================================================================
   WooCommerce Order Metabox Styling
   ========================================================================== */
.golmoti-order-metabox-wrap {
    padding: 8px 0;
}

.metabox-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gm-border);
}

.metabox-heading {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 2px 0;
}

.metabox-subheading {
    font-size: 12px;
    color: var(--gm-text-muted);
    margin: 0;
}

.metabox-empty-state {
    padding: 24px;
    text-align: center;
    background: #f8fafc;
    border-radius: var(--gm-radius-sm);
    border: 1px dashed var(--gm-border);
    margin-top: 10px;
}

.metabox-empty-state .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--gm-text-light);
    margin-bottom: 6px;
}

.metabox-empty-state p {
    font-size: 12.5px;
    color: var(--gm-text-muted);
    margin: 0;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.golmoti-toast-container {
    position: fixed;
    top: 40px;
    right: 30px;
    z-index: 100060;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.golmoti-toast {
    min-width: 280px;
    max-width: 440px;
    padding: 13px 18px;
    border-radius: var(--gm-radius-md);
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.45;
    animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.golmoti-toast .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.golmoti-toast.success {
    background: #059669 !important;
    color: #ffffff !important;
    border-left: 5px solid #064e3b;
    box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.45);
}

.golmoti-toast.error {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-left: 5px solid #7f1d1d;
    box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.45);
}

.golmoti-toast.info {
    background: #2563eb !important;
    color: #ffffff !important;
    border-left: 5px solid #1e3a8a;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.45);
}

/* ==========================================================================
   Placeholder & Roadmap
   ========================================================================== */
.golmoti-placeholder-card {
    text-align: center;
    padding: 48px 20px;
    max-width: 660px;
    margin: 24px auto;
}

.placeholder-icon-badge {
    width: 56px;
    height: 56px;
    border-radius: var(--gm-radius-lg);
    background: var(--gm-primary-light);
    color: var(--gm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
}

.placeholder-icon-badge .dashicons { font-size: 28px; width: 28px; height: 28px; }

.phase-tag {
    display: inline-block;
    padding: 3px 9px;
    background: var(--gm-primary-light);
    color: var(--gm-primary);
    border-radius: var(--gm-radius-full);
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 6px;
}

.placeholder-title { font-size: 20px; font-weight: 700; margin: 0 0 6px 0; }
.placeholder-desc { font-size: 13.5px; color: var(--gm-text-muted); max-width: 500px; margin: 0 auto 22px auto; line-height: 1.5; }

.placeholder-roadmap {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
    text-align: left;
}

.roadmap-step { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--gm-text-muted); }
.roadmap-step.done { color: var(--gm-emerald); font-weight: 600; }
.roadmap-step.active { color: var(--gm-primary); font-weight: 600; }

.step-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.roadmap-step.done .step-circle { background: var(--gm-emerald-light); color: var(--gm-emerald); }
.roadmap-step.active .step-circle { background: var(--gm-primary-light); color: var(--gm-primary); }

.placeholder-actions { display: flex; justify-content: center; gap: 10px; }

/* ==========================================================================
   Rates & Serviceability Calculator Layout
   ========================================================================== */
.golmoti-rates-main-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.golmoti-rates-form-card {
    margin-bottom: 0;
    box-sizing: border-box;
}

#golmoti-rates-results-wrapper {
    min-width: 0;
}

.golmoti-rate-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.golmoti-rate-card {
    background: #ffffff;
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius-md);
    padding: 12px 16px;
    margin-bottom: 10px;
    transition: all 0.15s ease;
    box-shadow: var(--gm-shadow-xs);
    box-sizing: border-box;
}

.golmoti-rate-card:hover {
    border-color: var(--gm-primary);
    box-shadow: var(--gm-shadow-sm);
}

.golmoti-rate-card.best-value {
    border-color: #93c5fd;
    background: #f8fbff;
}

.rate-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.rate-courier-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.rate-courier-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--gm-radius-sm);
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gm-primary);
    flex-shrink: 0;
}

.golmoti-rate-card.best-value .rate-courier-icon {
    background: #dbeafe;
}

.rate-courier-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.rate-courier-name {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gm-text-main);
    white-space: nowrap;
}

.rate-courier-meta {
    margin-top: 3px;
    font-size: 11.5px;
    color: var(--gm-text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.rate-price-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.rate-price-amount {
    font-size: 17px;
    font-weight: 800;
    color: var(--gm-text-main);
    text-align: right;
    line-height: 1.1;
}

.rate-price-breakdown {
    font-size: 10.5px;
    color: var(--gm-text-muted);
    text-align: right;
    white-space: nowrap;
    margin-top: 2px;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
    .golmoti-rates-main-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
    .golmoti-saas-container { flex-direction: column; }
    .golmoti-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #1e293b; }
    .golmoti-nav ul { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
    .golmoti-form-grid { grid-template-columns: 1fr; }
    .golmoti-form-group.full-width { grid-column: span 1; }
    .package-inputs-row { grid-template-columns: repeat(2, 1fr); }
    .view-details-grid { grid-template-columns: 1fr 1fr; }
    .placeholder-roadmap { flex-direction: column; }
    .golmoti-modal-overlay { padding: 10px; }
    .golmoti-modal { max-height: calc(100vh - 20px); }
    .golmoti-modal-body { max-height: calc(100vh - 140px); padding: 16px; }
    .rate-card-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .rate-price-right { width: 100%; justify-content: space-between; }
    .golmoti-rate-kpi-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Customer Account & Order Action Buttons Hover / Touch Styles (#F6BA33)
   ========================================================================== */
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content a.button,
.woocommerce-order-details .button,
.woocommerce-order-details a.button,
.woocommerce-orders-table__cell-order-actions .button {
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease !important;
}

.woocommerce .button:not(.golmoti-trigger-cancel-btn):hover,
.woocommerce .button:not(.golmoti-trigger-cancel-btn):active,
.woocommerce .button:not(.golmoti-trigger-cancel-btn):focus,
.woocommerce a.button:not(.golmoti-trigger-cancel-btn):hover,
.woocommerce a.button:not(.golmoti-trigger-cancel-btn):active,
.woocommerce a.button:not(.golmoti-trigger-cancel-btn):focus,
.woocommerce button.button:not(.golmoti-trigger-cancel-btn):hover,
.woocommerce button.button:not(.golmoti-trigger-cancel-btn):active,
.woocommerce button.button:not(.golmoti-trigger-cancel-btn):focus,
.woocommerce input.button:not(.golmoti-trigger-cancel-btn):hover,
.woocommerce input.button:not(.golmoti-trigger-cancel-btn):active,
.woocommerce-MyAccount-content .button:not(.golmoti-trigger-cancel-btn):hover,
.woocommerce-MyAccount-content .button:not(.golmoti-trigger-cancel-btn):active,
.woocommerce-MyAccount-content a.button:not(.golmoti-trigger-cancel-btn):hover,
.woocommerce-MyAccount-content a.button:not(.golmoti-trigger-cancel-btn):active,
.woocommerce-order-details .button:not(.golmoti-trigger-cancel-btn):hover,
.woocommerce-order-details .button:not(.golmoti-trigger-cancel-btn):active,
.woocommerce-order-details a.button:not(.golmoti-trigger-cancel-btn):hover,
.woocommerce-order-details a.button:not(.golmoti-trigger-cancel-btn):active,
.woocommerce-orders-table__cell-order-actions .button:not(.golmoti-trigger-cancel-btn):hover,
.woocommerce-orders-table__cell-order-actions .button:not(.golmoti-trigger-cancel-btn):active {
    background: #F6BA33 !important;
    background-color: #F6BA33 !important;
    border-color: #F6BA33 !important;
    color: #0f172a !important;
    box-shadow: 0 4px 12px rgba(246, 186, 51, 0.45) !important;
    transform: translateY(-1px);
}

/* Prevent Cancel & Track Package buttons from sticking together */
.woocommerce-MyAccount-content .button + .button,
.woocommerce-MyAccount-content a.button + a.button,
.woocommerce-MyAccount-content a.button + button,
.woocommerce-table td .button + .button,
.woocommerce-table td a.button + a.button,
table.order_details td .button + .button,
table.order_details td a.button + a.button,
.woocommerce-orders-table__cell-order-actions .button + .button,
.woocommerce-orders-table__cell-order-actions a.button + a.button,
a.golmoti_track + a.golmoti_cancel,
.button.golmoti_track + .button.golmoti_cancel {
    margin-left: 12px !important;
}


