/* VERSION-ACCOUNTING-COMPACT-ACTIONS-V30
   Makes accounting action controls compact, modern, and readable across the full Accounts module. */

/* Accounts hero/header action area */
.myob-hero{
  align-items:center !important;
  gap:18px !important;
}
.myob-hero > div:first-child{
  min-width:0 !important;
  flex:1 1 auto !important;
}
.myob-hero > div:first-child h2{
  font-size:26px !important;
  line-height:1.12 !important;
  margin-bottom:6px !important;
}
.myob-hero > div:first-child p{
  max-width:780px !important;
  line-height:1.25 !important;
}
.myob-hero-actions{
  flex:0 0 auto !important;
  min-width:0 !important;
  width:auto !important;
  max-width:560px !important;
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
  padding:10px !important;
  border-radius:18px !important;
  background:rgba(255,255,255,.76) !important;
  border:1px solid #dbeafe !important;
  box-shadow:0 10px 28px rgba(15,23,42,.08) !important;
}
.myob-hero-actions button{
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  height:38px !important;
  min-height:38px !important;
  padding:0 14px !important;
  border-radius:999px !important;
  font-size:13px !important;
  line-height:1 !important;
  letter-spacing:.01em !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  white-space:nowrap !important;
  box-shadow:0 8px 18px rgba(15,23,42,.12) !important;
}
.myob-hero-actions #accEnsureBtn::before{content:'✓';margin-right:6px;font-weight:900;}
.myob-hero-actions #accPrintPackBtn::before{content:'🖨';margin-right:6px;}
.myob-hero-actions #accExportJsonBtn::before{content:'⬇';margin-right:6px;}
.myob-hero-actions #accEnsureBtn{
  background:linear-gradient(135deg,#059669,#22c55e) !important;
  color:#ffffff !important;
  border:0 !important;
}
.myob-hero-actions #accPrintPackBtn{
  background:linear-gradient(135deg,#f97316,#ef4444) !important;
  color:#ffffff !important;
  border:0 !important;
}
.myob-hero-actions #accExportJsonBtn{
  background:#ffffff !important;
  color:#075985 !important;
  border:1px solid #7dd3fc !important;
}

/* Accounting work centre module buttons */
.myob-tabs.myob-module-buttons{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr)) !important;
  gap:10px !important;
  padding:12px !important;
  background:#ffffff !important;
  border:1px solid #dbeafe !important;
  box-shadow:0 12px 30px rgba(15,23,42,.06) !important;
}
.myob-module-buttons .myob-tab{
  min-height:56px !important;
  padding:10px 12px !important;
  border-radius:16px !important;
  text-align:left !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  background:#f8fbff !important;
  border:1px solid #bfdbfe !important;
  color:#0f2747 !important;
  box-shadow:0 8px 18px rgba(15,23,42,.05) !important;
}
.myob-module-buttons .myob-tab span,
.myob-module-buttons .myob-tab strong{
  color:#0f2747 !important;
  font-weight:900 !important;
}
.myob-module-buttons .myob-tab small{
  color:#475569 !important;
  font-weight:750 !important;
}
.myob-module-buttons .myob-tab:hover,
.myob-module-buttons .myob-tab.active{
  background:linear-gradient(135deg,#2563eb,#06b6d4) !important;
  color:#ffffff !important;
  transform:translateY(-1px) !important;
}
.myob-module-buttons .myob-tab:hover span,
.myob-module-buttons .myob-tab:hover small,
.myob-module-buttons .myob-tab.active span,
.myob-module-buttons .myob-tab.active small{
  color:#ffffff !important;
}

/* Accounting modal/work windows */
.accounting-work-window,
.myob-work-window,
.lmp-work-window,
.work-window{
  background:#ffffff !important;
  color:#0f172a !important;
}
.accounting-window-body,
.myob-window-body,
.work-window-body{
  background:#ffffff !important;
  color:#0f172a !important;
}
.myob-section,
.myob-launch-panel,
.myob-kpi,
.myob-summary-row > div,
.myob-section .table-card{
  background:#ffffff !important;
  color:#0f172a !important;
}

/* Tables inside every accounting module */
.myob-section table,
.myob-tab-page.active table,
.accounting-work-window table,
.work-window table{
  background:#ffffff !important;
  color:#0f172a !important;
}
.myob-section thead th,
.myob-tab-page.active thead th,
.accounting-work-window thead th,
.work-window thead th{
  background:#0f3b66 !important;
  color:#ffe066 !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
}
.myob-section tbody tr,
.myob-tab-page.active tbody tr,
.accounting-work-window tbody tr,
.work-window tbody tr{
  background:#ffffff !important;
}
.myob-section tbody tr:nth-child(even),
.myob-tab-page.active tbody tr:nth-child(even),
.accounting-work-window tbody tr:nth-child(even),
.work-window tbody tr:nth-child(even){
  background:#f8fbff !important;
}
.myob-section td,
.myob-tab-page.active td,
.accounting-work-window td,
.work-window td,
.myob-section td *,
.myob-tab-page.active td *,
.accounting-work-window td *,
.work-window td *{
  color:#0f172a !important;
  opacity:1 !important;
  text-shadow:none !important;
}
.myob-section td .muted,
.myob-tab-page.active td .muted,
.accounting-work-window td .muted{
  color:#475569 !important;
}

/* Buttons inside tables and accounting windows */
.myob-section .mini-btn,
.accounting-work-window .mini-btn,
.work-window .mini-btn,
.myob-section button.edit-btn,
.myob-section button[data-action="edit"]{
  background:#eff6ff !important;
  color:#075985 !important;
  border:1px solid #93c5fd !important;
  border-radius:12px !important;
  padding:8px 12px !important;
  box-shadow:none !important;
}
.myob-section .mini-btn.danger,
.accounting-work-window .mini-btn.danger,
.work-window .mini-btn.danger,
.myob-section button.delete-btn,
.myob-section button[data-action="delete"]{
  background:#fff1f2 !important;
  color:#be123c !important;
  border:1px solid #fecdd3 !important;
  border-radius:12px !important;
  padding:8px 12px !important;
  box-shadow:none !important;
}

/* Inputs and labels */
.myob-form-grid label,
.journal-line-grid label,
.myob-section label,
.accounting-work-window label{
  color:#0f3b66 !important;
  font-weight:900 !important;
}
.myob-form-grid input,
.myob-form-grid select,
.myob-form-grid textarea,
.journal-line-grid input,
.journal-line-grid select,
.accounting-work-window input,
.accounting-work-window select,
.accounting-work-window textarea{
  background:#ffffff !important;
  color:#0f172a !important;
  border:1px solid #bfdbfe !important;
}
.myob-form-grid input::placeholder,
.myob-form-grid textarea::placeholder,
.accounting-work-window input::placeholder,
.accounting-work-window textarea::placeholder{
  color:#64748b !important;
}

@media(max-width:980px){
  .myob-hero{display:block !important;}
  .myob-hero-actions{justify-content:flex-start !important;margin-top:12px !important;}
  .myob-hero-actions button{height:36px !important;font-size:12px !important;padding:0 11px !important;}
}

/* V31 accountant-friendly export button: JSON removed from user-facing Accounts area */
.myob-hero-actions .accent-btn, .actions .accent-btn{background:linear-gradient(135deg,#0ea5e9,#2563eb)!important;color:#fff!important;border:0!important;border-radius:12px!important;font-weight:900!important;box-shadow:0 8px 18px rgba(37,99,235,.18)!important;}
.myob-hero-actions .accent-btn:hover, .actions .accent-btn:hover{filter:brightness(1.05);transform:translateY(-1px);}
