
/* TEDY CELLULAR - TEMA PUTIH FINAL
   Override visual only. Tidak mengubah fungsi PHP/database. */
:root{
  --tedy-bg:#f4f6f8;
  --tedy-surface:#ffffff;
  --tedy-text:#171717;
  --tedy-muted:#5f6368;
  --tedy-border:#dfe3e8;
}
html,body{
  background:var(--tedy-bg) !important;
  background-image:none !important;
  color:var(--tedy-text) !important;
}
body::before,body::after,
.app::before,.app::after,
.wrapper::before,.wrapper::after,
.main-content::before,.main-content::after{
  background-image:none !important;
}
main,.main,.content,.content-wrapper,.main-content,.page-content,
.container-fluid,.dashboard-content{
  background-color:transparent !important;
  background-image:none !important;
}
.card,.panel,.box,.section,.report-section,.summary-card,.stat-card,
.table-wrap,.filters,.toolbar,.form-card,.modal-content,
[class*="card"],[class*="panel"],[class*="section"]{
  background-color:var(--tedy-surface) !important;
  background-image:none !important;
  color:var(--tedy-text) !important;
  border-color:var(--tedy-border) !important;
  box-shadow:0 2px 10px rgba(0,0,0,.06) !important;
}
.card *, .panel *, .box *, .section *, .report-section *,
.summary-card *, .stat-card *, .table-wrap *, .filters *, .toolbar *,
.form-card *, .modal-content *{
  text-shadow:none !important;
}
.card h1,.card h2,.card h3,.card h4,.card h5,.card h6,
.panel h1,.panel h2,.panel h3,.panel h4,.panel h5,.panel h6,
.section h1,.section h2,.section h3,.section h4,.section h5,.section h6,
.form-card h1,.form-card h2,.form-card h3,.form-card h4,
label,.form-label,.table,.table th,.table td{
  color:var(--tedy-text) !important;
}
.text-muted,.muted,.small-muted,.help-text{color:var(--tedy-muted) !important}
input,select,textarea,.form-control,.form-select{
  background:#fff !important;
  color:#171717 !important;
  border-color:#cfd5dc !important;
}
input::placeholder,textarea::placeholder{color:#8a9096 !important}
.table,.table-responsive{background:#fff !important}
.table thead th{background:#eef1f4 !important;color:#171717 !important}
.table tbody td{background:#fff !important;color:#171717 !important}
a:not(.btn){text-shadow:none !important}
.navbar,.topbar,.sidebar,.side-menu,.menu-sidebar{
  background-image:none !important;
}
@media(max-width:768px){
  body{background:#f4f6f8 !important}
  .card,.panel,.box,.section,.form-card{border-radius:12px !important}
}
@media print{
  html,body,main,.main,.content,.content-wrapper,.main-content,.page-content,
  .card,.panel,.box,.section,.report-section,.form-card{
    background:#fff !important;
    background-image:none !important;
    box-shadow:none !important;
    color:#000 !important;
  }
}


/* =========================================================
   TEDY CELLULAR - GLOBAL TOUCH FEEDBACK
   Efek sentuh untuk menu/tombol/aksi sampai elemen kecil.
   Hanya visual; tidak mengubah ukuran normal atau fungsi.
   ========================================================= */
:where(
  a[href],
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  [role="button"],
  .btn,
  .nav-link,
  .menu-card,
  .menu-item,
  .menu-link,
  .item,
  .action,
  .action-btn,
  .icon-btn,
  .card-link,
  .quick-action,
  .payment-option,
  .payment-method,
  .tab,
  .tab-link,
  .pagination a,
  .dropdown-item
){
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
  transition:
    transform .13s ease,
    box-shadow .13s ease,
    filter .13s ease,
    opacity .13s ease !important;
}

:where(
  a[href],
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  [role="button"],
  .btn,
  .nav-link,
  .menu-card,
  .menu-item,
  .menu-link,
  .item,
  .action,
  .action-btn,
  .icon-btn,
  .card-link,
  .quick-action,
  .payment-option,
  .payment-method,
  .tab,
  .tab-link,
  .pagination a,
  .dropdown-item
):active{
  transform:scale(.965) !important;
  filter:brightness(.92) !important;
  box-shadow:0 2px 8px rgba(15,23,42,.18) !important;
  opacity:.96;
}

/* Tombol/ikon sangat kecil: efek sedikit lebih ringan agar tidak "loncat". */
:where(
  .btn-sm,
  .btn-xs,
  .icon-btn,
  .pagination a,
  table a[href],
  table button
):active{
  transform:scale(.94) !important;
}

/* Elemen nonaktif tidak diberi animasi. */
:where(
  button:disabled,
  input:disabled,
  .btn.disabled,
  .disabled,
  [aria-disabled="true"]
){
  transform:none !important;
  filter:none !important;
  box-shadow:none !important;
  cursor:not-allowed;
}

/* Form input biasa sengaja tidak dianimasikan agar mengetik tetap stabil. */
input:not([type="button"]):not([type="submit"]):not([type="reset"]),
select,
textarea,
.form-control,
.form-select{
  transform:none;
}
