
/* ==================================================
   CSS PAITO MACAU 5 TABEL

   Mendukung tabel jam 00:00, 13:00, 16:00,
   19:00, dan 22:00.
================================================== */

/* ==================================================
     VARIABEL WARNA
  ================================================== */

  :root {
    --green-primary: #16b83e;
    --green-light: #4bea63;
    --green-dark: #087a25;
    --green-deep: #002d10;
    --green-border: #0b6b22;
    --gold: #ffd166;
    --white: #ffffff;
    --black: #001508;
  }


  /* ==================================================
     RESET DASAR
  ================================================== */

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
  }

  body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    color: var(--white);
    background-color: var(--black);
    background-image:
      radial-gradient(
        circle at top,
        rgba(22, 184, 62, 0.30),
        transparent 38%
      ),
      radial-gradient(
        rgba(75, 234, 99, 0.14) 1px,
        transparent 1px
      );
    background-size: auto, 6px 6px;
    background-attachment: fixed;
    font-family: "Oswald", Arial, sans-serif;
    overflow-x: hidden;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  a {
    color: inherit;
    transition:
      color 0.2s ease,
      background-color 0.2s ease,
      border-color 0.2s ease,
      transform 0.2s ease;
  }

  a:hover {
    color: var(--gold);
  }


  /* ==================================================
     CONTAINER UTAMA
  ================================================== */

  .container2 {
    width: 65%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    background: rgba(0, 21, 8, 0.95);
    border: 1px solid var(--green-border);
    border-radius: 12px;
    box-shadow:
      0 12px 35px rgba(0, 0, 0, 0.65),
      0 0 20px rgba(22, 184, 62, 0.16);
  }

  .space {
    width: 100%;
    color: #d5d5d5;
    text-decoration: none;
  }


  /* ==================================================
     POPUP
  ================================================== */

  .overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    visibility: visible;
    opacity: 1;
    background: rgba(0, 21, 8, 0.88);
    backdrop-filter: blur(3px);
    transition:
      opacity 0.4s ease,
      visibility 0.4s ease;
  }

  .overlay:target {
    visibility: hidden;
    opacity: 0;
  }

  .popup {
    position: relative;
    top: 50%;
    left: 50%;
    width: 20%;
    padding: 3px;
    overflow: visible;
    background: rgba(0, 45, 16, 0.95);
    border: 1px solid rgba(75, 234, 99, 0.45);
    border-radius: 8px;
    box-shadow:
      0 15px 40px rgba(0, 0, 0, 0.75),
      0 0 18px rgba(75, 234, 99, 0.30);
    transform: translate(-50%, -50%);
  }

  .popup h2 {
    margin-top: 0;
    color: var(--white);
    font-family: Tahoma, Arial, sans-serif;
  }

  .popup .close {
    position: absolute;
    top: -2px;
    right: 6px;
    z-index: 2;
    color: var(--white);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-shadow: 0 0 8px var(--green-light);
    transition:
      color 0.2s ease,
      transform 0.2s ease;
  }

  .popup .close:hover {
    color: var(--gold);
    transform: scale(1.12);
  }

  .popup .content {
    max-height: 70vh;
    margin-top: 30px;
    overflow: auto;
  }


  /* ==================================================
     HEADER DAN LOGO
  ================================================== */

  .head {
    width: 100%;
    padding: 16px 20px;
    background:
      radial-gradient(
        circle at center,
        #087a25 0%,
        #002d10 58%,
        #001508 100%
      );
    border: 0;
    border-bottom: 2px solid var(--green-primary);
  }

  .logo {
    display: block;
    width: 500px;
    max-width: 100%;
    aspect-ratio: 500 / 180;
    margin: 0 auto;
    background-image: url("/img/logo.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter:
      drop-shadow(
        0 4px 10px rgba(75, 234, 99, 0.30)
      );
  }


  /* ==================================================
     JUDUL PAITO
  ================================================== */

  .paito-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 75px;
    margin: 0;
    padding: 14px 10px;
    color: var(--white);
    font-family: Arial, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    background:
      linear-gradient(
        180deg,
        rgba(8, 122, 37, 0.65),
        rgba(0, 45, 16, 0.85)
      );
  }

  .paito-title a {
    color: var(--white);
    text-decoration: none;
    text-shadow:
      0 2px 3px #000000,
      0 0 12px rgba(75, 234, 99, 0.75);
  }

  .paito-title a:hover {
    color: var(--gold);
  }


  /* ==================================================
     MENU UTAMA
  ================================================== */

  .menu {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
    padding: 10px;
    overflow: hidden;
    background:
      linear-gradient(
        180deg,
        #087a25 0%,
        #004718 48%,
        #001c0a 100%
      );
    border-top: 1px solid var(--green-light);
    border-bottom: 3px solid var(--green-primary);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 5px 16px rgba(0, 0, 0, 0.55);
  }

  .menu::before {
    content: "";
    position: absolute;
    top: -75px;
    left: 50%;
    width: 420px;
    height: 130px;
    pointer-events: none;
    background:
      radial-gradient(
        ellipse,
        rgba(75, 234, 99, 0.45),
        transparent 68%
      );
    transform: translateX(-50%);
  }

  .menu a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    padding: 9px 21px;
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.3px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    background:
      linear-gradient(
        180deg,
        #4bea63 0%,
        #16b83e 52%,
        #087a25 100%
      );
    border: 1px solid #71f185;
    border-radius: 8px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      0 3px 7px rgba(0, 0, 0, 0.45);
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.80);
    transition:
      color 0.2s ease,
      background 0.2s ease,
      border-color 0.2s ease,
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  .menu a:hover,
  .menu a:focus,
  .menu a.active {
    color: #002d10;
    background:
      linear-gradient(
        180deg,
        #ffe99d 0%,
        #ffcb3f 55%,
        #e8a900 100%
      );
    border-color: #ffe58c;
    outline: none;
    text-shadow: none;
    transform: translateY(-2px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.70),
      0 6px 13px rgba(0, 0, 0, 0.50),
      0 0 13px rgba(75, 234, 99, 0.40);
  }

  .menu a:active {
    transform: translateY(0);
  }


  /* ==================================================
     AREA KONTEN
  ================================================== */

  .content {
    width: 100%;
    overflow: hidden;
    background:
      linear-gradient(
        180deg,
        rgba(8, 122, 37, 0.42),
        rgba(0, 15, 6, 0.88)
      );
    border: 0;
    border-top: 1px solid var(--green-border);
  }

  .content p {
    margin: 12px;
    color: #eeeeee;
    font-size: 16px;
    line-height: 1.75;
    text-align: justify;
  }

  .content p a {
    color: #65ee79;
    font-weight: 600;
  }

  .content p a:hover {
    color: var(--gold);
  }

  h1,
  h2,
  h3 {
    color: var(--white);
    text-align: center;
    text-shadow:
      0 2px 3px #000000,
      0 0 9px rgba(75, 234, 99, 0.55);
  }

  h1 {
    margin: 20px 10px;
    font-size: 30px;
    line-height: 1.3;
  }

  h2 {
    margin: 20px 10px;
    font-size: 25px;
    line-height: 1.35;
  }

  h3 {
    margin: 40px 10px;
    font-family: Arial, sans-serif;
    font-size: 28px;
  }

  .title-head {
    color: var(--white);
    font-size: 22px;
    text-decoration: none;
  }

  .title-head:hover {
    color: var(--gold);
  }

  .title-footer {
    color: var(--white);
    font-size: 28px;
    text-decoration: none;
  }

  .title-footer:hover {
    color: var(--gold);
  }


  /* ==================================================
     BANNER
  ================================================== */

  .banner1,
  .banner2,
  .banner,
  .banner-top,
  .headerbanner {
    width: 100%;
    text-align: center;
  }

  .banner1 {
    display: block;
  }

  .banner1 img {
    display: inline-block;
    width: 49%;
    vertical-align: middle;
    border: 1px solid var(--green-border);
  }

  .banner2 {
    display: block;
  }

  .banner2 img {
    max-width: 100%;
  }

  .banner {
    background: #001c0a;
  }

  .banner img {
    display: block;
    width: 100%;
    margin: 0;
  }

  .banner-top img {
    width: 728px;
    max-width: 100%;
  }

  .headerbanner img {
    display: inline-block;
    width: 49.5%;
    vertical-align: middle;
    border: 1px solid var(--green-border);
  }


  /* ==================================================
     BANNER MELAYANG
  ================================================== */

  .banner-float {
    position: fixed;
    right: 0;
    bottom: 1px;
    left: 0;
    z-index: 9999;
    width: 100%;
    text-align: center;
    pointer-events: none;
  }

  .banner-float img {
    width: 728px;
    max-width: 100%;
    pointer-events: auto;
  }

  .floating-top,
  .floating-bottom {
    position: fixed;
    left: 0;
    z-index: 1001;
    width: 100%;
    padding: 0;
    text-align: center;
    background: transparent;
  }

  .floating-top {
    top: 0;
  }

  .floating-bottom {
    bottom: 0;
  }

  .floating-top img,
  .floating-bottom img {
    display: inline-block;
    width: 33%;
    height: 70px;
    object-fit: cover;
    vertical-align: middle;
    border: 1px solid var(--green-border);
  }


  /* ==================================================
     IKLAN
  ================================================== */

  .iklan {
    width: 100%;
  }

  .iklan img {
    display: block;
    width: 100%;
  }


  /* ==================================================
     INPUT TAMBAHAN
  ================================================== */

  .t1,
  .t2,
  .t3 {
    padding: 7px 10px;
    color: var(--white);
    background: #002d10;
    border: 1px solid var(--green-border);
    font-size: 16px;
    outline: none;
  }

  .t1 {
    width: 40%;
  }

  .t2,
  .t3 {
    width: 30%;
  }

  .t1:focus,
  .t2:focus,
  .t3:focus {
    background: var(--green-deep);
    border-color: var(--green-light);
    box-shadow: 0 0 7px rgba(75, 234, 99, 0.35);
  }


  /* ==================================================
     AREA Paito HK Lotto
  ================================================== */

  .lassres {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    color: #111111;
    background: #ffffff;
    border: 1px solid var(--green-border);
    border-radius: 7px;
  }


  /* ==================================================
     FORM PENCARIAN PAITO
  ================================================== */

  .controls {
    display: block;
    width: 100%;
    padding: 10px 6px;
    text-align: center;
    background:
      linear-gradient(
        180deg,
        #05671f,
        #002d10
      );
    border-bottom: 1px solid var(--green-border);
  }

  #myForm {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
    margin: 0;
  }

  input.cari {
    width: 48px;
    height: 31px;
    margin: 0;
    padding: 4px;
    color: var(--green-primary);
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
    outline: none;
  }

  input.cari:focus {
    border-color: var(--green-light);
    box-shadow: 0 0 7px rgba(75, 234, 99, 0.55);
  }

  #rb {
    min-width: 70px;
    height: 31px;
    margin: 0;
    padding: 4px 12px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    background:
      linear-gradient(
        180deg,
        #4bea63,
        #087a25
      );
    border: 1px solid #71f185;
    border-radius: 4px;
    cursor: pointer;
  }

  #rb:hover {
    color: #002d10;
    background:
      linear-gradient(
        180deg,
        #ffe89a,
        #ffbb18
      );
    border-color: #ffe070;
  }


  /* ==================================================
     MENU PILIHAN WARNA
  ================================================== */

  #colormenu {
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    padding: 7px;
    background:
      linear-gradient(
        180deg,
        #05671f,
        #002d10
      );
    border-bottom: 2px solid var(--green-border);
  }

  #colormenu button {
    font-family: Arial, sans-serif;
  }

  #colormenu .color {
    appearance: none;
    width: 100%;
    min-width: 0;
    height: 29px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    cursor: pointer;
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.30),
      0 2px 4px rgba(0, 0, 0, 0.40);
  }

  #colormenu .color:hover {
    transform: translateY(-1px);
  }

  #colormenu .color.selected {
    outline: 3px solid var(--gold);
    outline-offset: -3px;
    box-shadow:
      0 0 0 1px #07591d,
      0 0 10px rgba(255, 209, 102, 0.85);
  }

  #colormenu .eraser {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    font-size: 10px;
    font-weight: 700;
    background:
      repeating-linear-gradient(
        135deg,
        #ffffff 0,
        #ffffff 6px,
        #eeeeee 6px,
        #eeeeee 12px
      ) !important;
  }

  #btnSubmit {
    width: 100%;
    min-width: 0;
    height: 29px;
    margin: 0;
    padding: 3px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    background:
      linear-gradient(
        180deg,
        #4bea63,
        #087a25
      );
    border: 1px solid #71f185;
    border-radius: 4px;
    cursor: pointer;
  }

  #btnSubmit:hover {
    color: #002d10;
    background:
      linear-gradient(
        180deg,
        #ffe89a,
        #ffbb18
      );
    border-color: #ffe070;
  }


  /* ==================================================
     PEMBUNGKUS TABEL PAITO
  ================================================== */

  #tableresult {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #ffffff;
  }

  #paito-table,
  #tableresult table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    color: #111111;
    background: #ffffff;
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
    user-select: none;
  }


  /* ==================================================
     HEADER HARI
  ================================================== */

  #tableresult thead,
  #tableresult thead tr {
    color: #ffffff;
    background: var(--green-dark);
  }

  #tableresult thead th,
  #tableresult thead td,
  #tableresult .head-day,
  #tableresult .headd td {
    width: calc(100% / 7);
    min-width: 0;
    height: 34px;
    padding: 6px 2px;
    overflow: hidden;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;
    white-space: nowrap;
    background:
  linear-gradient(
    180deg,
    #4bea63 0%,
    #16b83e 48%,
    #087a25 100%
  );
border: 1px solid var(--green-border);
box-shadow:
  inset 0 1px 0 rgba(255, 255, 255, 0.35);
text-shadow: 0 1px 2px #000000;
  }


  /* ==================================================
     SEL DATA PAITO
  ================================================== */

  .paito-body tr {
    background: #ffffff;
  }

  .paito-body td {
    width: calc(100% / 35);
    min-width: 0;
    height: 26px;
    padding: 2px 0;
    overflow: hidden;
    color: #111111;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    background: #ffffff;
    border: 1px solid #d2d2d2;
    cursor: pointer;
  }

  .paito-body td.asu,
  .paito-body td.nxp {
    color: #111111;
    font-weight: 700;
    background: #ffffff;
  }

  .paito-body td.asux,
  .paito-body td.nxpx {
    color: #cbc5c5;
    font-weight: 400;
    background: #ffffff;
  }

  .paito-body td.disabled {
    color: #999999;
    font-weight: 400;
    background: #f1f1f1;
    cursor: default;
  }


  /* ==================================================
     PEMBATAS SETIAP LIMA BARIS
  ================================================== */

  .paito-body tr:nth-child(5n) td.asu,
  .paito-body tr:nth-child(5n) td.nxp {
    background: #e8e4e7;
  }

  .paito-body tr:nth-child(5n) td.asux,
  .paito-body tr:nth-child(5n) td.nxpx {
    color: #aaa4a8;
    background: #e8e4e7;
  }

  .paito-body tr:nth-child(5n) td {
    border-bottom: 2px solid var(--green-border);
  }

  .paito-body td.asu:hover,
 .paito-body td.nxp:hover {
  color: #ffffff;
  background: var(--green-primary);
}


  /* ==================================================
     WARNA HIGHLIGHT OTOMATIS
  ================================================== */

  .paito-body td.a_active {
    color: #ffffff !important;
    background: #ff9800 !important;
  }

  .paito-body td.c_active {
    color: #ffffff !important;
    background: #164fe0 !important;
  }

  .paito-body td.k_active {
    color: #ffffff !important;
    background: #078516 !important;
  }

  .paito-body td.e_active {
    color: #ffffff !important;
    background: #ff7a00 !important;
  }

  .paito-body td.j_active {
    color: #ffffff !important;
    background: #c54800 !important;
  }

  .paito-body td.a_active,
  .paito-body td.c_active,
  .paito-body td.k_active,
  .paito-body td.e_active,
  .paito-body td.j_active {
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  }


  /* ==================================================
     WARNA PAITO TAMBAHAN
  ================================================== */

  .e1,
  .e2,
  .e3,
  .e4,
  .e5,
  .e6,
  .e7,
  .e8,
  .e9,
  .e0 {
    color: var(--white);
    background-color: #f26500;
    border-radius: 0;
  }

  .k1,
  .k2,
  .k3,
  .k4,
  .k5,
  .k6,
  .k7,
  .k8,
  .k9,
  .k0 {
    color: var(--white);
    background-color: #168315;
    border-radius: 0;
  }


  /* ==================================================
     LINK KELUAR
  ================================================== */

  .out-link {
    margin: 0 35px;
    color: var(--white);
    list-style-type: square;
  }

  .out-link li {
    margin-bottom: 7px;
  }

  .out-link a {
    color: var(--white);
    text-decoration: none;
  }

  .out-link a:hover {
    color: var(--gold);
  }


  /* ==================================================
     RESPONSIVE TABLET
  ================================================== */

  @media only screen and (max-width: 1000px) {
    .container2 {
      width: 100%;
      max-width: 100%;
      margin: 0;
      border-right: 0;
      border-left: 0;
      border-radius: 0;
    }

    .head {
      padding: 10px;
    }

    .logo {
      width: 320px;
      max-width: 100%;
      margin: 0 auto;
    }

    .paito-title {
      min-height: 65px;
      font-size: 1.55rem;
    }

    .menu {
      display: grid;
      grid-template-columns:
        repeat(2, minmax(0, 1fr));
      gap: 6px;
      padding: 8px;
    }

    .menu a {
      display: flex;
      width: 100%;
      min-height: 42px;
      padding: 8px 5px;
      font-size: 15px;
      border-radius: 7px;
    }

    .headerbanner img,
    .banner1 img,
    .banner2 img {
      display: block;
      width: 100%;
    }

    .banner img,
    .banner-top img,
    .banner-float img {
      display: block;
      width: 100%;
    }

    .floating-top img,
    .floating-bottom img {
      width: 94%;
      height: 38px;
      object-fit: cover;
    }

    h1 {
      font-size: 24px;
    }

    h2 {
      font-size: 21px;
    }

    h3 {
      margin: 25px 8px;
      font-size: 17px;
    }

    .title-footer {
      font-size: 16px;
    }

    .content p {
      margin: 11px;
      font-size: 15px;
      line-height: 1.7;
    }

    .lassres {
      width: 100%;
      max-width: 100%;
      margin: 0;
      border-right: 0;
      border-left: 0;
      border-radius: 0;
    }

    /*
     * Tablet tetap menampilkan semua tujuh hari.
     * Tabel tidak lagi dipaksa 875px.
     */
    #paito-table,
    #tableresult table {
      width: 100%;
      min-width: 0;
      max-width: 100%;
    }
  }


  /* ==================================================
     RESPONSIVE HP
  ================================================== */

  @media only screen and (max-width: 600px) {
    .popup {
      width: 75%;
    }

    .logo {
      width: 300px;
      max-width: 94%;
    }

    .paito-title {
      min-height: 58px;
      padding: 10px 6px;
      font-size: 1.3rem;
    }

    .menu {
      grid-template-columns:
        repeat(2, minmax(0, 1fr));
      gap: 5px;
      padding: 6px;
    }

    .menu a {
      min-height: 39px;
      padding: 6px 3px;
      font-size: 13px;
      letter-spacing: 0;
    }

    .content {
      overflow: hidden;
    }

    .content p {
      margin: 10px;
      font-size: 14px;
      line-height: 1.65;
    }

    .t1,
    .t2,
    .t3 {
      padding: 6px 5px;
      font-size: 14px;
    }

    .out-link {
      margin: 0 25px;
    }

    /*
     * Form menggunakan enam kolom:
     * AS, KOP, KEP, EKR, JML, RESET.
     */
    #myForm {
      display: grid;
      grid-template-columns:
        repeat(6, minmax(0, 1fr));
      gap: 4px;
      width: 100%;
    }

    .controls {
      padding: 7px 4px;
    }

    input.cari,
    #rb {
      width: 100%;
      min-width: 0;
      height: 29px;
      margin: 0;
      padding: 2px;
      font-size: 10px;
    }

    #rb {
      min-width: 0;
    }

    /*
     * Tujuh tombol menu warna.
     * Empat pada baris pertama, tiga berikutnya
     * pada baris kedua.
     */
    #colormenu {
      grid-template-columns:
        repeat(4, minmax(0, 1fr));
      gap: 4px;
      padding: 5px;
    }

    #colormenu .color,
    #btnSubmit {
      width: 100%;
      min-width: 0;
      height: 27px;
    }

    #colormenu .eraser {
      font-size: 9px;
    }

    /*
     * Tabel mengikuti lebar HP.
     * Semua Senin–Minggu langsung terlihat.
     */
    #tableresult {
      width: 100%;
      max-width: 100%;
      overflow: hidden;
    }

    #paito-table,
    #tableresult table {
      width: 100%;
      min-width: 0;
      max-width: 100%;
      table-layout: fixed;
    }

    #tableresult thead th,
    #tableresult thead td,
    #tableresult .head-day,
    #tableresult .headd td {
      width: calc(100% / 7);
      min-width: 0;
      height: 27px;
      padding: 4px 0;
      font-size: 8px;
      line-height: 1;
    }

    .paito-body td {
      width: calc(100% / 35);
      min-width: 0;
      max-width: none;
      height: 20px;
      padding: 1px 0;
      font-size: 8px;
      line-height: 1;
    }
  }


  /* ==================================================
     RESPONSIVE HP KECIL
  ================================================== */

  @media only screen and (max-width: 360px) {
    .logo {
      width: 270px;
    }

    .paito-title {
      font-size: 1.15rem;
    }

    .menu a {
      min-height: 37px;
      font-size: 12px;
    }

    h1 {
      font-size: 20px;
    }

    h2 {
      font-size: 18px;
    }

    #myForm {
      gap: 3px;
    }

    input.cari,
    #rb {
      height: 27px;
      font-size: 9px;
    }

    .paito-body td {
      height: 19px;
      font-size: 7px;
    }

    #tableresult thead th,
    #tableresult thead td,
    #tableresult .head-day,
    #tableresult .headd td {
      height: 25px;
      font-size: 7px;
    }
    /* ==================================================
   PERBAIKAN LIMA TABEL PAITO MACAU
================================================== */

#tableresult table {
  width: 100% !important;
  margin: 0 0 25px !important;
  color: #111111;
  background: #ffffff;
  border: 1px solid #444444 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: fixed;
}

#tableresult .paito-body tr {
  background: #ffffff;
}

#tableresult .paito-body td {
  width: calc(100% / 35);
  min-width: 0;
  height: 26px;
  padding: 2px 0;
  color: #111111;
  background-color: #ffffff;
  border: 1px solid #b5b5b5 !important;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  box-sizing: border-box;
}

/* Garis pembatas setiap lima angka */
#tableresult .paito-body td:nth-child(5n) {
  border-right: 2px solid #087a25 !important;
}

/* Garis pembatas setiap lima baris */
#tableresult .paito-body tr:nth-child(5n) td {
  border-bottom: 2px solid #087a25 !important;
}

/* Pertahankan warna manual */
#tableresult .paito-body td.manual-colored {
  color: #ffffff !important;
}

/* Highlight pencarian */
#tableresult .paito-body td.a_active {
  color: #ffffff !important;
  background: #ff4d4d !important;
}

#tableresult .paito-body td.c_active {
  color: #ffffff !important;
  background: #164fe0 !important;
}

#tableresult .paito-body td.k_active {
  color: #ffffff !important;
  background: #078516 !important;
}

#tableresult .paito-body td.e_active {
  color: #ffffff !important;
  background: #ff9800 !important;
}

#tableresult .paito-body td.j_active {
  color: #ffffff !important;
  background: #910303 !important;
}
  }
  