/* Custom color theme properties */
:root {
  --f7-theme-color: #bb400e;
  --f7-theme-color-rgb: 187, 64, 14;
  --f7-theme-color-shade: #95330b;
  --f7-theme-color-tint: #e14d11;
}

/* Invert navigation bars to fill style */
:root,
:root.dark,
:root .dark {
  --f7-bars-bg-color: var(--f7-theme-color);
  --f7-bars-bg-color-rgb: var(--f7-theme-color-rgb);
  --f7-bars-translucent-opacity: 0.9;
  --f7-bars-text-color: #fff;
  --f7-bars-link-color: #fff;
  --f7-navbar-subtitle-text-color: rgba(255,255,255,0.85);
  --f7-bars-border-color: transparent;
  --f7-tabbar-link-active-color: #fff;
  --f7-tabbar-link-inactive-color: rgba(255,255,255,0.54);
  --f7-sheet-border-color: transparent;
  --f7-tabbar-link-active-border-color: #fff;
}
.appbar,
.navbar,
.toolbar,
.subnavbar,
.calendar-header,
.calendar-footer {
  --f7-touch-ripple-color: var(--f7-touch-ripple-white);
  --f7-link-highlight-color: var(--f7-link-highlight-white);
  --f7-link-touch-ripple-color: var(--f7-touch-ripple-white);
  --f7-button-text-color: #fff;
  --f7-button-pressed-bg-color: rgba(255,255,255,0.1);
}
.navbar-large-transparent,
.navbar-large.navbar-transparent {
  --f7-navbar-large-title-text-color: #000;

  --r: 187;
  --g: 64;
  --b: 14;
  --progress: var(--f7-navbar-large-collapse-progress);
  --f7-bars-link-color: rgb(
    calc(var(--r) + (255 - var(--r)) * var(--progress)),
    calc(var(--g) + (255 - var(--g)) * var(--progress)),
    calc(var(--b) + (255 - var(--b)) * var(--progress))
  );
}
.dark .navbar-large-transparent,
.dark .navbar-large.navbar-transparent {
  --f7-navbar-large-title-text-color: #fff;
}

/* Your app custom styles here */

.invalid {
  border: 2px solid red;
}

input.invalid {
  border: 2px solid red;
}

select.invalid {
  border: 2px solid red;
}

textarea.invalid {
  border: 2px solid red;
}

.itemresp:hover{
  background-color:var(--f7-link-highlight-color);
 
}

table.cetak{
  border:0.5px solid black;
  border-collapse:collapse;
   } 
  

  table.cetak>tr>td{

    background:var(--f7-theme-color);
    color:var(--f7-button-text-color);

    border:1px solid white;
  }	
  
   

  table.cetak>thead>tr>th{
    color:var(--f7-bars-text-color) !important;
    background-color:var(--f7-theme-color);
    text-align:center;
    line-height:10px;
    font: bold 11px/25px;

  }	  


  table.cetak>tr:hover{
  background:yellow;	

  }
  
  table.cetak td{
  border:0.5px solid black;
  }
  
  table.dataTable thead th {
  background-color: var(--f7-theme-color); /* warna header */
  color: #ffffff;           /* warna teks */
   height: 30px;
    max-height: 30px;
}

table.dataTable tbody td {
    height: 30px;
    max-height: 30px;
    overflow-y: auto;
    white-space: normal;
}


.input-underline {
  border: none;
  border-bottom: 2px solid #999;
  padding: 6px 2px;
  font-size: 14px;
  outline: none;
}

.input-underline:focus {
  border-bottom-color: #007bff;
}

  .mytextarea { width: 100%;         /* Menyesuaikan lebar kontainer */
  width: 80vw;    /* Batas maksimal lebar */
  height: 50px;       /* Tinggi tetap atau juga bisa responsive */
  box-sizing: border-box; /* Agar padding/border tidak menambah lebar */
  padding: 10px;       /* Padding dalam */
  resize: vertical;    /* Hanya bisa resize ke atas/bawah */
  }

     .myinput {
  max-width: 80%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  transition: all 0.25s ease;
  background: #fff;
}

.myinput:focus {
  border-color: var(--f7-theme-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.myinput::placeholder {
  color: #9ca3af;
}   
/* Container untuk scroll */
.table-container {
    width: 100%;
    overflow-x: auto;
}

/* Tabel */
.table-container table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Header dan sel */
.table-container th,
.table-container td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

/* Header styling */
.table-container th {
    background-color: #2c3e50;
    color: white;
    font-weight: 600;
}

/* Kolom 1 (FIXED 40%) */
.table-container th:nth-child(1),
.table-container td:nth-child(1) {
    width: 40%;  /* ← Ubah dari 30% ke 40% */
    background-color: #f8f9fa;
    position: sticky;
    left: 0;
    z-index: 2;
}

/* Header kolom 1 */
.table-container th:nth-child(1) {
    z-index: 3;
    background-color: #2c3e50;
}

/* Kolom 2 (60%) */
.table-container th:nth-child(2),
.table-container td:nth-child(2) {
    width: 60%;  /* ← Ubah dari 70% ke 60% */
    background-color: white;
}