/* =====================================================
   Admin Mobile CSS v2.3
   Optimiert für iPhone 16 Pro (393px) und ähnliche
   ===================================================== */

/* ==================== GLOBAL - KEIN HORIZONTALES SCROLLEN ==================== */

@media (max-width: 768px) {
  
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  
  * {
    max-width: 100vw;
    box-sizing: border-box;
  }

  :root {
    --mobile-header-height: 52px;
  }

  /* ----- Admin Layout ----- */
  .admin-layout {
    display: block;
    overflow-x: hidden;
    max-width: 100vw;
  }

  .admin-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    width: 280px;
    z-index: 2000;
    transition: left 0.3s ease;
  }

  .admin-sidebar.open {
    left: 0;
  }

  .admin-main {
    margin-left: 0;
    padding-top: var(--mobile-header-height);
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* ----- Mobile Header ----- */
  .admin-mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    height: var(--mobile-header-height);
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card);
    border-bottom: 1px solid var(--border);
  }

  .sidebar-toggle {
    width: 36px;
    height: 36px;
    padding: 6px;
    flex-shrink: 0;
  }

  .mobile-brand {
    font-size: 14px;
    gap: 6px;
    flex: 1;
    justify-content: center;
    overflow: hidden;
  }

  .mobile-brand .brand-text {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ----- Page Header AUSBLENDEN (Mobile Header zeigt alles) ----- */
  .page-header {
    display: none !important;
  }

  /* ----- Page Content ----- */
  .page-content {
    padding: 12px;
    padding-bottom: 100px;
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* ----- Buttons & Inputs ----- */
  .btn {
    min-height: 40px;
  }

  input, select, textarea {
    min-height: 42px;
    font-size: 16px !important;
  }

  /* ----- Dialogs Fullscreen ----- */
  dialog.dlg {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
  }

  .dlg-card {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
  }

  .dlg-head {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--card);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }

  .dlg-head h3 {
    font-size: 16px;
    margin: 0;
  }

  .dlg-head .btn.icon {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
  }

  .dlg-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
  }

  .dlg-foot {
    position: sticky;
    bottom: 0;
    background: var(--card);
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    flex-shrink: 0;
  }

  .dlg-foot .btn {
    flex: 1;
  }

  /* ----- Floating Save ----- */
  .save-float {
    position: fixed;
    bottom: 16px;
    left: 12px;
    right: 12px;
    z-index: 200;
  }

  .save-float .btn {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  }

  /* ----- Sidebar ----- */
  .sidebar-header {
    padding: 12px;
  }

  .nav-item {
    padding: 12px 14px;
    font-size: 14px;
  }
}


/* ==================== DASHBOARD ==================== */
@media (max-width: 768px) {

  .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .stat-card {
    padding: 12px 10px;
    gap: 8px;
  }

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

  .stat-value {
    font-size: 18px;
  }

  .stat-label {
    font-size: 10px;
  }

  .issues-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .quick-links {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  .quick-link {
    padding: 12px;
  }

  .dashboard-section {
    margin-bottom: 16px;
  }

  .section-header h2 {
    font-size: 14px;
  }
}


/* ==================== PRODUKTE ==================== */
@media (max-width: 768px) {

  /* Stats - 3 Spalten kompakt */
  .prod-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
  }

  .prod-stat {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 8px 4px !important;
    gap: 2px !important;
  }

  .prod-stat .icon {
    font-size: 16px !important;
  }

  .prod-stat .value {
    font-size: 16px !important;
  }

  .prod-stat .label {
    font-size: 8px !important;
  }

  /* Toolbar */
  .page-toolbar {
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin-bottom: 12px;
  }

  .toolbar-search {
    width: 100%;
    max-width: none !important;
  }

  .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions select {
    width: 100%;
  }

  /* Tabelle */
  .prod-table-wrap {
    margin: 0 -12px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .prod-table th,
  .prod-table td {
    padding: 8px 6px;
    font-size: 11px;
  }

  .prod-table th:nth-child(4),
  .prod-table td:nth-child(4),
  .prod-table th:nth-child(5),
  .prod-table td:nth-child(5) {
    display: none;
  }

  .prod-thumb {
    width: 26px;
    height: 26px;
  }

  /* Edit Modal */
  .edit-modal {
    width: 100% !important;
    max-width: 100% !important;
  }

  .edit-header {
    padding: 10px 12px;
  }

  .edit-header h2 {
    font-size: 14px;
  }

  .edit-body {
    padding: 12px;
  }

  .edit-footer {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .edit-footer .btn {
    flex: 1 1 45%;
    min-width: 0;
    padding: 8px;
    font-size: 12px;
  }

  .edit-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 2px;
  }

  .edit-tab {
    padding: 8px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  /* Size Fields - 2 Spalten statt 3 */
  .size-item {
    padding: 10px;
  }

  .size-item .size-fields {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .size-item .size-fields > .field:nth-child(3) {
    grid-column: 1 / -1;
  }

  .size-item .size-fields input {
    font-size: 14px !important;
    padding: 8px !important;
    min-height: 38px !important;
  }

  /* Images Row */
  .images-row {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  /* Field Grid */
  .field-grid.cols-2 {
    grid-template-columns: 1fr !important;
  }

  .field {
    margin-bottom: 10px;
  }

  .field label {
    font-size: 11px;
  }

  /* File Browser Dialog */
  #dlgFiles .dlg-card {
    max-width: 100% !important;
  }

  .fb-header {
    flex-direction: column;
    gap: 8px;
  }

  .fb-header select,
  .fb-header input {
    width: 100%;
  }

  #fbGrid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)) !important;
    gap: 6px !important;
    max-height: 50vh !important;
  }
}


/* ==================== BESTANDSLISTE ==================== */
@media (max-width: 768px) {

  /* Stats */
  .stock-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
  }

  .stock-stat {
    padding: 10px !important;
    text-align: center;
  }

  .stock-stat .label {
    font-size: 9px !important;
  }

  .stock-stat .value {
    font-size: 18px !important;
  }

  /* Toolbar */
  .stock-toolbar {
    flex-direction: column !important;
    gap: 8px !important;
    padding: 0 !important;
    margin-bottom: 12px !important;
  }

  .stock-toolbar .search-box {
    width: 100% !important;
  }

  .stock-filters {
    display: flex !important;
    width: 100% !important;
    gap: 4px !important;
  }

  .filter-btn {
    flex: 1 !important;
    padding: 8px 4px !important;
    font-size: 10px !important;
    text-align: center !important;
  }

  /* Tabelle als Cards */
  .stock-table-wrap {
    overflow: visible !important;
    border: none !important;
    background: transparent !important;
    margin: 0 -12px;
    padding: 0 12px;
  }

  .stock-table {
    display: block !important;
  }

  .stock-table thead {
    display: none !important;
  }

  .stock-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .stock-table tr {
    display: flex !important;
    flex-direction: column !important;
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    padding: 10px !important;
  }

  .stock-table td {
    display: block !important;
    padding: 0 !important;
    border: none !important;
  }

  .stock-table td:first-child {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: var(--accent) !important;
    margin-bottom: 6px !important;
  }

  .stock-table td:nth-child(2) {
    margin-bottom: 6px !important;
  }

  .stock-table td:nth-child(3) {
    font-size: 12px !important;
    color: var(--muted) !important;
    margin-bottom: 8px !important;
  }

  .stock-table td:last-child {
    border-top: 1px solid var(--border) !important;
    padding-top: 8px !important;
  }

  .product-images img {
    width: 36px !important;
    height: 36px !important;
  }

  /* Size Rows - EINE ZEILE pro Größe */
  .size-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    flex-wrap: nowrap !important;
  }

  .size-row:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  .size-row .volume {
    min-width: 50px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  .size-row .order-num {
    min-width: 55px !important;
    font-size: 10px !important;
    color: var(--muted) !important;
  }

  .size-row .stock-btns {
    display: flex !important;
    margin: 0 !important;
    order: 0 !important;
    width: auto !important;
  }

  .size-row .stock-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    font-size: 16px !important;
  }

  .size-row .stock-input {
    width: 45px !important;
    min-width: 45px !important;
    max-width: 45px !important;
    height: 30px !important;
    min-height: 30px !important;
    font-size: 13px !important;
    padding: 4px !important;
    text-align: center !important;
  }
}


/* ==================== BESTELLUNGEN ==================== */
@media (max-width: 768px) {

  /* Stats - Kompakt wie andere Seiten */
  .orders-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
  }

  .order-stat {
    padding: 10px !important;
    gap: 6px !important;
    flex-direction: column !important;
    text-align: center !important;
  }

  .order-stat-icon {
    font-size: 18px !important;
  }

  .order-stat-value {
    font-size: 18px !important;
  }

  .order-stat-label {
    font-size: 9px !important;
  }

  /* Filter Tabs */
  .filter-tabs {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 4px !important;
    margin-bottom: 12px !important;
    flex-wrap: nowrap !important;
    padding-bottom: 4px;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab {
    flex-shrink: 0 !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
  }

  .filter-tab .tab-count {
    margin-left: 4px !important;
    font-size: 9px !important;
    padding: 2px 5px !important;
  }

  /* Order Cards */
  .orders-list {
    gap: 10px !important;
  }

  .order-card {
    border-radius: 10px !important;
  }

  .order-header {
    padding: 10px !important;
    gap: 8px !important;
  }

  .order-info {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .order-id {
    font-size: 13px !important;
  }

  .order-meta {
    font-size: 10px !important;
  }

  .order-total {
    font-size: 15px !important;
  }

  .order-status {
    padding: 3px 6px !important;
    font-size: 9px !important;
  }

  /* Order Body */
  .order-body {
    padding: 10px !important;
  }

  .order-customer {
    font-size: 12px !important;
    margin-bottom: 10px !important;
  }

  .order-items {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 0 -10px !important;
    padding: 0 10px !important;
  }

  .order-items table {
    font-size: 10px !important;
    min-width: 320px !important;
  }

  .order-items th,
  .order-items td {
    padding: 4px 6px !important;
  }

  .order-summary {
    font-size: 12px !important;
    margin-top: 10px !important;
    padding-top: 10px !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  .order-note {
    font-size: 11px !important;
  }

  /* Order Actions - 2 Spalten */
  .order-actions {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    padding: 10px !important;
  }

  .order-actions .btn {
    width: 100% !important;
    padding: 8px 4px !important;
    font-size: 10px !important;
    min-height: 36px !important;
  }

  .order-actions .btn .icon {
    display: none !important;
  }
}


/* ==================== SMALL PHONES (≤400px) ==================== */
@media (max-width: 400px) {

  :root {
    --mobile-header-height: 48px;
  }

  .page-content {
    padding: 10px;
    padding-bottom: 90px;
  }

  /* Bestellungen Actions 1 Spalte bei sehr kleinen Screens */
  .order-actions {
    grid-template-columns: 1fr !important;
  }

  .order-actions .btn {
    font-size: 11px !important;
  }
}


/* ==================== SAFE AREAS (iPhone X+) ==================== */
@supports (padding: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    .save-float {
      bottom: calc(16px + env(safe-area-inset-bottom));
    }

    .dlg-foot {
      padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
  }
}


/* ==================== TOUCH DEVICES ==================== */
@media (hover: none) and (pointer: coarse) {
  
  .btn {
    min-height: 44px;
  }

  .nav-item {
    min-height: 48px;
  }

  a, button, .btn, .nav-item, .filter-btn, .filter-tab {
    -webkit-tap-highlight-color: transparent;
  }

  .prod-thumb:hover,
  .product-images img:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}


/* ==================== PRINT ==================== */
@media print {
  .admin-mobile-header,
  .admin-sidebar,
  .sidebar-overlay,
  .save-float,
  .page-actions {
    display: none !important;
  }
}


/* ==================== BESTELLLISTE ==================== */
@media (max-width: 768px) {
  
  /* Quick Add Section */
  .quick-add-section {
    padding: 12px !important;
    margin-bottom: 16px !important;
  }
  
  .quick-add-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  
  .quick-input-group input,
  .quick-input-group select {
    font-size: 16px !important;
    min-height: 44px !important;
  }
  
  /* Size Buttons einzeilig scrollbar */
  .size-buttons {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    padding-bottom: 4px !important;
  }
  
  .size-btn {
    flex-shrink: 0 !important;
    min-width: 70px !important;
    padding: 10px 12px !important;
  }
  
  /* Menge Controls */
  .qty-input-group {
    margin-top: 10px !important;
  }
  
  .qty-adjust-btn {
    width: 44px !important;
    height: 44px !important;
  }
  
  #inputQty {
    width: 60px !important;
    height: 44px !important;
    font-size: 18px !important;
  }
  
  /* Add Button */
  .btn-add-product {
    width: 100% !important;
    min-height: 48px !important;
    margin-top: 12px !important;
  }
  
  /* Stats */
  .list-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }
  
  .list-stat {
    padding: 10px 6px !important;
  }
  
  .list-stat-value {
    font-size: 18px !important;
  }
  
  .list-stat-label {
    font-size: 9px !important;
  }
  
  /* Items Table als Cards - OHNE data-label Prefix */
  .items-table {
    display: block !important;
  }
  
  .items-table thead {
    display: none !important;
  }
  
  .items-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  .items-table tr {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    background: var(--card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    padding: 12px !important;
    gap: 6px !important;
  }
  
  .items-table td {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 !important;
    border: none !important;
  }
  
  /* data-label verstecken */
  .items-table td::before {
    display: none !important;
  }
  
  /* Best.-Nr. */
  .items-table td:nth-child(1) {
    order: 1 !important;
  }
  
  .items-table td:nth-child(1) .item-order-code {
    font-size: 16px !important;
    font-weight: 900 !important;
    color: var(--accent) !important;
    font-family: monospace !important;
  }
  
  /* Kunde */
  .items-table td:nth-child(2) {
    order: 2 !important;
    flex: 1 !important;
  }
  
  .items-table td:nth-child(2) .item-customer {
    font-weight: 600 !important;
  }
  
  /* Löschen Button ganz rechts */
  .items-table td:nth-child(6) {
    order: 3 !important;
    margin-left: auto !important;
  }
  
  /* Produkt in neuer Zeile */
  .items-table td:nth-child(3) {
    order: 4 !important;
    width: 100% !important;
    font-size: 12px !important;
    color: var(--muted) !important;
    margin-top: 4px !important;
  }
  
  /* Größe verstecken auf Mobile */
  .items-table td:nth-child(4) {
    display: none !important;
  }
  
  /* Preis rechts unten */
  .items-table td:nth-child(5) {
    order: 5 !important;
    margin-left: auto !important;
  }
  
  .items-table td:nth-child(5) .item-price {
    color: var(--fg) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
  }
  
  /* Summary */
  .items-summary {
    padding: 10px !important;
    font-size: 14px !important;
  }
  
  /* Actions Row */
  .actions-row {
    flex-direction: column !important;
    gap: 8px !important;
  }
  
  .actions-row .btn {
    width: 100% !important;
    min-height: 48px !important;
  }
  
  /* ==================== HISTORY CARDS ==================== */
  
  .history-card {
    margin-bottom: 12px !important;
  }
  
  .history-card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 12px !important;
  }
  
  .history-card-stats {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
  }
  
  /* History Table als Cards */
  .history-table {
    display: block !important;
  }
  
  .history-table thead {
    display: none !important;
  }
  
  .history-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }
  
  .history-table tr {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    padding: 10px !important;
    gap: 6px !important;
  }
  
  .history-table td {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 !important;
    border: none !important;
  }
  
  /* data-label verstecken */
  .history-table td::before {
    display: none !important;
  }
  
  /* Checkbox */
  .history-table td:nth-child(1) {
    order: 1 !important;
    margin-right: 8px !important;
  }
  
  /* Best.-Nr. */
  .history-table td:nth-child(2) {
    order: 2 !important;
  }
  
  .history-table td:nth-child(2) .order-code {
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: monospace !important;
  }
  
  /* Kunde */
  .history-table td:nth-child(3) {
    order: 3 !important;
    flex: 1 !important;
    font-weight: 600 !important;
  }
  
  /* Produkt in neuer Zeile */
  .history-table td:nth-child(4) {
    order: 5 !important;
    width: calc(100% - 40px) !important;
    margin-left: 40px !important;
    font-size: 11px !important;
    color: var(--muted) !important;
  }
  
  /* Größe verstecken */
  .history-table td:nth-child(5) {
    display: none !important;
  }
  
  /* Preis rechts */
  .history-table td:nth-child(6) {
    order: 4 !important;
    margin-left: auto !important;
    font-weight: 600 !important;
  }
  
  /* History Summary & Actions */
  .history-summary {
    padding: 10px !important;
    font-size: 13px !important;
  }
  
  .history-actions {
    padding: 10px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  
  .history-actions .btn {
    flex: 1 !important;
    min-width: 100px !important;
  }
}


/* ==================== BESTELLLISTE PRINT (MOBILE) ==================== */
/* Diese Styles überschreiben Mobile-Card-Layout beim Drucken */
@media print {
  
  /* Alles verstecken außer Print-Container */
  #adminApp,
  #loginScreen,
  #toast,
  .admin-mobile-header,
  .admin-sidebar,
  .sidebar-overlay {
    display: none !important;
  }
  
  /* Print Container anzeigen */
  .print-header,
  .print-container,
  .print-footer {
    display: block !important;
    background: #fff !important;
    color: #000 !important;
  }
  
  /* Body Reset */
  body {
    background: #fff !important;
    padding: 10px !important;
  }
  
  /* Print Stats */
  .print-stats {
    display: flex !important;
    justify-content: space-around !important;
    background: #f0f0f0 !important;
    padding: 8px !important;
    margin-bottom: 10px !important;
    border: 1px solid #999 !important;
  }
  
  /* Print Table immer als echte Tabelle */
  .print-table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
    background: #fff !important;
  }
  
  .print-table thead {
    display: table-header-group !important;
  }
  
  .print-table tbody {
    display: table-row-group !important;
  }
  
  .print-table tr {
    display: table-row !important;
    background: #fff !important;
  }
  
  .print-table th,
  .print-table td {
    display: table-cell !important;
    border: 1px solid #999 !important;
    padding: 4px 6px !important;
    color: #000 !important;
    background: #fff !important;
  }
  
  .print-table th {
    background: #e5e5e5 !important;
    font-size: 8pt !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  .print-table td {
    font-size: 9pt !important;
  }
  
  /* Bestellnummer Spalte fett */
  .print-table td:nth-child(2) {
    font-family: 'Courier New', monospace !important;
    font-size: 10pt !important;
    font-weight: 900 !important;
  }
  
  /* Print Summary */
  .print-summary {
    display: flex !important;
    justify-content: space-between !important;
    background: #e5e5e5 !important;
    padding: 8px !important;
    border: 2px solid #000 !important;
    margin-top: 10px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  /* Print Checkbox */
  .print-checkbox {
    display: inline-block !important;
    width: 10px !important;
    height: 10px !important;
    border: 1.5px solid #000 !important;
    background: #fff !important;
  }
}

/* Mobile Header Actions Container */
.mobile-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mobile-header-actions .btn {
  padding: 8px 12px;
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-header-actions .btn .icon {
  font-size: 18px;
}

.btn-add-mobile {
  background: var(--card);
  border: 1px solid var(--border);
}

.btn-add-mobile:hover,
.btn-add-mobile:active {
  background: var(--accent);
  border-color: var(--accent);
}
