.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

table {
    border-collapse: collapse;
    margin: 0 auto !important;
    width: 100%;
}

table, td, th {
    border: 1px solid #ccc;
    cursor: default;
}

tr:nth-last-child(5n+1) {
    background: #e8e4e7 !important;
}

.residex {
    color: #d7d1d1;
    font-weight: normal;
    width: auto;
}

.top, .intro td {
    background: #ffffff !important;
}

.reside {
    font-weight: bold;
    width: auto;
}

.reside, .residex, .residexx, .entry-content td.reside, .entry-content td.residex, .entry-content td.residexx {
    padding: 0 !important;
    font-size: 12px !important;
}

#drawing-table {
    border-collapse: collapse;
    width: 100%;
}

#drawing-table td {
    border: 1px solid #d9d9d9;
    text-align: center;
    padding: 2px;
}

.ballhk {
    background: #990000;
    color: #ffffff;
    display: inline-block;
    padding: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 16px;
    font-family: Arial, sans-serif;
    line-height: 26px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: 1px solid #000000;
    user-select: none;
    box-sizing: border-box;
}

#colormenu {
    display: flex;
    align-items: center;
    padding: 5px;
    background: #f0f0f0;
    border-bottom: 1px solid #ccc;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

body.admin-bar #colormenu {
    top: 32px;
}

#color-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    border: none;
    padding: 0;
    margin: 0;
}

#color-selector > * {
    flex: 1 1 0;
    box-sizing: border-box;
}

#btnSubmit {
    cursor: pointer;
    background-color: transparent;
    border: 1px solid #6f6969;
    border-radius: 3px;
    text-align: center;
    font-size: 10px;
    color: #000000;
    height: 20px;
}

.color {
    height: 20px;
    cursor: pointer;
    border: 1px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color.eraser {
    font-size: 10px;
    color: #000000;
    background: #ffffff;
}

.color.selected {
    border: 2px solid #000000;
}

.asu {
  color: #000 !important;
}

.cb,
.asux {
  background: none repeat scroll 0 0 #fff;
  color: #d7d1d1;
  font-weight: 400;
}

.e1, .e2, .e3, .e4, .e5, .e6, .e7, .e8, .e9, .e0 { background-color: #ff4d4d; color: #ffffff; }
.k1, .k2, .k3, .k4, .k5, .k6, .k7, .k8, .k9, .k0 { background-color: green; color: #ffffff; }
.c1, .c2, .c3, .c4, .c5, .c6, .c7, .c8, .c9, .c0 { background-color: blue; color: #ffffff; }
.a1, .a2, .a3, .a4, .a5, .a6, .a7, .a8, .a9, .a0 { background-color: orange; color: #ffffff; }
.j1, .j2, .j3, .j4, .j5, .j6, .j7, .j8, .j9, .j0 { background-color: #910303; color: #ffffff; }

.highlight {
    padding: 1px 4px;
    margin: 0 -4px;
}

input.cari {
    width: 40px;
    height: 32px;
    text-align: center;
    color: #d32f2f;
    font-weight: 800;
    font-size: 15px;
    background: #f0f7f2;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

input.cari::placeholder {
    color: #999999;
    font-weight: 600;
    font-size: 10px;
}

input.cari:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
    background: #ffffff;
}

#rb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f03a17;
    border: none;
    color: #ffffff;
    padding: 0 10px;
    height: 32px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(240, 58, 23, 0.3);
}

#rb:hover {
    background: #d32f2f;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(240, 58, 23, 0.4);
}

#rb:active {
    transform: translateY(1px);
    box-shadow: none;
}

.list-group-item, .list-group-item a {
    padding: 0 10px;
    text-decoration: none;
    font-weight: bold;
}

#colormenu.fixed {
    position: fixed !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 100%;
    width: calc(100% - 30px) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    #colormenu.fixed {
        width: 870px !important;
    }
}

@media (max-width: 767px) {
    #drawing-table td {
        font-size: 12px;
        padding: revert;
    }
    .reside, .residex, .residexx, .entry-content td.reside, .entry-content td.residex, .entry-content td.residexx {
        font-size: 10px !important;
    }
    #btnSubmit {
        width: auto;
        padding: 0 5px;
    }
    #color-selector .color {
        height: 18px;
        width: 100%;
        flex: 1 1 0;
    }
    #colormenu.fixed {
        width: calc(100% - 20px) !important;
    }
}
