﻿:root {
    --prif-lliw: #338ce6;
    --ail-lliw: #338ce6;
    --trydydd-lliw: #338ce6;
    --pedwerydd-lliw: #338ce6;
}

html {
    font-size: 16px;
}

* {
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
    width: 100%;
    height: 100%;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0.8rem 0 0.8rem 0;
}

a {
    text-decoration: none;
    color: #000;
}

small {
    font-size: 0.875rem;
}

button,
input,
textarea {
    font-size: 1rem;
}

/* #region Mewnbwn */

.MewnbwnUnNod input {
    max-width: 6.7rem !important;
}

.testunMewnbwn {
    font-size: 0.75rem;
    color: #000;
    font-weight: 700;
    position: relative;
    top: 0.5rem;
    margin: 0 0 0 7px;
    padding: 0 3px;
    background: #e8e8e8;
    border-radius: 0.3rem;
    width: fit-content;
    z-index: 1;
}

.input {
    padding: 11px 10px;
    border: 2px #000 solid;
    border-radius: 5px;
    background: #e8e8e8;
}

    .input:focus {
        outline: none;
    }

/* #endregion */

/* #region Checkbox */

.testunCheckbox {
    font-size: 0.75rem;
    color: #000;
    font-weight: 700;
    position: relative;
    padding: 0 3px;
    background: #e8e8e8;
    border-radius: 0.3rem;
    width: fit-content;
}

.container-checkbox input.custom-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
    border-radius: 5px;
}

.container-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 20px;
    user-select: none;
}

.checkmark {
    position: relative;
    height: 1.5em;
    width: 1.5em;
    background-color: #ccc;
    border-radius: 5px;
    box-shadow: 1px 1px 0px rgb(183, 183, 183);
}

.container-checkbox input.custom-checkbox:checked ~ .checkmark {
    background-image: linear-gradient(45deg, #1e5fbf 0%, var(--prif-lliw) 50%, #6fb8ff 100%);
    box-shadow: 3px 3px 0px rgb(183, 183, 183);
}

.checkmark:after {
    content: "";
    position: absolute;
    left: 35%;
    top: 20%;
    width: 25%;
    height: 50%;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.2s;
}

.container-checkbox input.custom-checkbox:checked ~ .checkmark:after {
    opacity: 1;
}

/* #endregion Checkbox */

/* #region Lliwiau */

.lliw-1 {
    background-color: var(--prif-lliw);
}

lliw-2 {
    background-color: #1c5a8e;
}

lliw-3 {
    background-color: #FFF;
}

.lliw-1-eitem {
    color: var(--prif-lliw);
}

lliw-2-eitem {
    color: #1c5a8e;
}

lliw-3-eitem {
    color: #FFF;
}

/* #endregion */

/* #region DewislenLlyfr */

.container-dewislen-llyfr {
    display: flex;
    position: relative;
    width: 100%;
    background-color: var(--prif-lliw);
}

    .container-dewislen-llyfr  h4 {
        color: #FFF;
    }

.dewislen-llyfr {
    border-top: 2px solid #000;
    border-bottom: 2px solid #000
}

.agor-cau-dewislen {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 18px;
    color: white;
}

.selected {
    color: white;
    background-color: #19262e;
}

/* #region Modiwlau */

/* Selected Bob Modiwl */
.dewislen-llyfr a:hover, .dewislen-llyfr .selected {
    background-color: #19262e !important;
}

/* LliwiauCAP */
.lliwCAP .selected p {
    background-color: #19262e !important;
    color: white !important;
}

.lliwCAP {
    background-color: #ffc20a !important;
}
    .lliwCAP .pupilNickName, .CAP .container-dewislen-llyfr h4, .CAP .ManylionDisgybl a {
        background-color: #ffc20a !important;
        color: #000 !important;
    }

    .lliwCAP .dewislen-llyfr p:hover, .lliwCAP .dewislen-llyfr a:hover {
        background-color: #19262e !important;
        color: white !important;
    }

    .lliwCAP p, lliwCAP H1, lliwCAP H4 {
        background-color: #ffc20a !important;
        color: black !important;
    }

/*  LliwiauHanesyddol */
.lliwHanesyddol .selected p {
    background-color: #19262e !important;
    color: white !important;
}

.lliwHanesyddol {
    background-color: #757575 !important;
}

    .lliwHanesyddol .pupilNickName {
        background-color: #757575 !important;
        color: white !important;
    }

    .lliwHanesyddol .dewislen-llyfr p:hover, .lliwHanesyddol .dewislen-llyfr a:hover {
        background-color: #757575 !important;
        color: white !important;
    }

    .lliwHanesyddol p, .lliwHanesyddol H1, .CAP .lliwHanesyddol H4 {
        background-color: #757575 !important;
        color: white !important;
    }

/* Botwm Arbed CAP */
.CAP .saveButton {
    background-color: #ffc20a !important;
    color: black !important;
}

    .CAP .saveButton:hover {
        background-color: #f9b200 !important;
        color: black !important;
    }

.NegesHanesyddol {
    padding: 0.8rem;
    background-color: #fecea8;
    border-radius: 0.4rem;
    color: black;
}

/* LliwiauCAP */

@media only screen and (min-width: 992px) {

    .container-dewislen-llyfr {
        width: 30%;
    }
}

@media only screen and (min-width: 1400px) {

    .container-dewislen-llyfr {
        width: 25%;
    }
}

/* #endregion */

/* #region RhestrOstwngStatws */

.BotwmRhestrOstwngStatwsCDU, .BotwmRhestrOstwngStatwsGweinyddolCDU {
    background-color: #19262e;
    color: white;
    padding: 0.8rem;
    border-radius: 0.4rem;
}

    .BotwmRhestrOstwngStatwsCDU:hover, .BotwmRhestrOstwngStatwsGweinyddolCDU:hover {
        opacity: 0.7;
        cursor: pointer;
    }

.RhestrOstwngStatwsCDU, .RhestrOstwngStatwsGweinyddolCDU {
    display: none !important;
    border: 2px solid #19262e;
    border-radius: 0.4rem;
    width: 100%;
    background-color: white;
}

    .RhestrOstwngStatwsCDU.active, .RhestrOstwngStatwsGweinyddolCDU.active {
        display: flex !important;
    }

/* #endregion RhestrOstwngStatws */

/* #endregion DewislenLlyfr */

/* #region Disgyblion */

/* #region Modiwlau */

.BotwmModiwl {
    height: auto !important;
    padding: 0.5rem 0.7rem !important;
}

    .BotwmModiwl.lliwCAP,
    .BotwmModiwl.lliwGI {
        color: #000 !important;
    }

        .BotwmModiwl.lliwCAP:hover,
        .BotwmModiwl.lliwGC:hover,
        .BotwmModiwl.lliwGI:hover {
            color: #FFF !important;
            background-color: #19262e !important;
        }

/* #endregion Modiwlau */

/* #region RhestrOstwng */

.HeaderDashfwrdd {
    display: flex;
    flex-direction: column;
}

.HeaderDashfwrddNiferDisgyblion {
    justify-content: center;
    align-items: center;
}

.RhestrOstwng {
    max-width: 15rem;
    min-width: 12rem;
    padding: 11px 10px;
    border: 2px solid #000;
    border-radius: 0.3rem;
    cursor: pointer;
    box-sizing: border-box;
    /* Clirio saeth rhagosodedig */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Saeth newydd */
    background: #e8e8e8 url('data:image/svg+xml;utf8,<svg fill="%23555" height="26" viewBox="0 0 24 24" width="26" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
    background-size: 26px;
}

@media only screen and (min-width: 600px) {

    .HeaderDashfwrdd {
        flex-direction: row;
    }

    .HeaderDashfwrddNiferDisgyblion {
        justify-content: right;
        align-items: center;
    }

    .RhestrOstwng {
        min-width: 15rem;
    }
}

/* #endregion */

/* #endregion Disgyblion */

/* #region RhestrOstwng-Dropdown */

.dropdown {
    position: relative;
    display: flex;
    width: 100%;
}

.dropdown-btn {
    background-color: #fff;
    padding: 11px 10px;
    border: 2px solid #000;
    border-radius: 0.3rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    /* Saeth blwch mewnbwn SVG */
    -moz-appearance: none;
    appearance: none;
    background: #e8e8e8 url('data:image/svg+xml;utf8,<svg fill="%23555" height="26" viewBox="0 0 24 24" width="26" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
    background-size: 26px;
}

    .dropdown-btn .btn-text {
        flex-grow: 1;
    }

    .dropdown-btn .arrow {
        margin-left: auto;
    }

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    width: 100%;
    box-sizing: border-box;
}

    .dropdown-content a {
        padding: 10px;
        display: block;
        text-decoration: none;
        color: black;
    }

        .dropdown-content a:hover {
            background-color: #f1f1f1;
        }

.RhestrOstwngDewiswyd {
    color: white !important;
    background-color: var(--prif-lliw);
}

/* #endregion */

/* #region Checkbox */

.defnyddwrDewiswyd {
    background-color: #1c5a8e;
    color: white !important;
    padding: 0.2rem;
    border-radius: 0.5rem;
}

.CheckboxExpandIsGategori {
    display: none;
}

/* #endregion */

/* #region Labeli */

.label-prif {
    font-size: 0.6rem;
    padding: 0.2rem;
    border-radius: 0.6rem;
    color: #FFF;
    background-image: linear-gradient(45deg, rgb(100, 61, 219) 0%, rgb(217, 21, 239) 100%);
}

.label-success {
    text-align: center;
    font-size: 0.6rem;
    padding: 0.2rem;
    border-radius: 0.6rem;
    background-color: #5cb85c;
    color: #FFF;
}

.label-primary {
    font-size: 0.6rem;
    padding: 0.2rem;
    border-radius: 0.6rem;
    background-color: #0d6efd;
    color: #FFF;
}

.label-cap {
    text-align: center;
    font-size: 0.6rem;
    padding: 0.2rem;
    border-radius: 0.6rem;
    background-color: #f9b200;
    color: #000;
}

.label-gc {
    text-align: center;
    font-size: 0.6rem;
    padding: 0.2rem;
    border-radius: 0.6rem;
    background-color: #8a4f7d;
    color: #FFF;
}

.label-gi {
    text-align: center;
    font-size: 0.6rem;
    padding: 0.2rem;
    border-radius: 0.6rem;
    background-color: #c1edcc;
    color: #000;
}

.label-danger {
    text-align: center;
    font-size: 0.6rem;
    padding: 0.2rem;
    border-radius: 0.6rem;
    background-color: #dc3545;
    color: #FFF;
}

/* #endregion */

/* #region ExpandCollapsibleByDefault */

.field_92 .EhanguDatapage, .EhanguDatapage {
    display: block;
}

.field_92 .CwympoDatapage, .CwympoDatapage {
    display: none;
}

/* #endregion */

/* #region IconauTrefnuDatatables */

.dt-search {
    display: none;
}

/* Ensure the sort icon is visible and styled properly */
table.dataTable thead th .dt-column-order {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 5px;
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.2s;
}

.dt-column-header {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Default state (no sort) */
table.dataTable thead th.dt-orderable-asc .dt-column-order {
    background-image: url('data:image/svg+xml,%3Csvg xmlns%3D%22http%3A//www.w3.org/2000/svg%22 viewBox%3D%220 0 320 512%22 fill%3D%22%23000000%22%3E%3Cpath d%3D%22M192 448h-64V32h64v416zm64-320h-192c-21.4 0-32.1 25.9-17 41L143 465c9.4 9.4 24.6 9.4 33.9 0L273 169c15-15.1 4.3-41-17-41z%22/%3E%3C/svg%3E');
}

/* Ascending Sort Icon (Black) */
table.dataTable thead th.dt-ordering-asc .dt-column-order {
    background-image: url('data:image/svg+xml,%3Csvg xmlns%3D%22http%3A//www.w3.org/2000/svg%22 viewBox%3D%220 0 320 512%22 fill%3D%22%23000000%22%3E%3Cpath d%3D%22M279 224H41c-21.4 0-32.1-25.9-17-41L143 47c9.4-9.4 24.6-9.4 33.9 0L296 183c15 15.1 4.3 41-17 41z%22/%3E%3C/svg%3E');
}

/* Descending Sort Icon (Black) */
table.dataTable thead th.dt-ordering-desc .dt-column-order {
    background-image: url('data:image/svg+xml,%3Csvg xmlns%3D%22http%3A//www.w3.org/2000/svg%22 viewBox%3D%220 0 320 512%22 fill%3D%22%23000000%22%3E%3Cpath d%3D%22M41 288H279c21.4 0 32.1 25.9 17 41L177 465c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15-15.1-4.3-41 17-41z%22/%3E%3C/svg%3E');
}

/* #endregion */

/* #region Lluniau */

.logo {
    height: 6rem;
    width: 13rem;
}

/* #endregion */

/* #region NavDrosDro */

.lliw-1 {
    background-color: #19262e;
}

header {
    height: 100%;
    width: 100%;
}

/* #region Nav */

.nav-container {
    position: fixed;
    width: 100%;
    height: 3rem;
    z-index: 100;
}

nav a {
    color: #FFF;
    font-size: 13px;
}

.aroleuo-nav:hover i {
    transform: scale(0.95);
    color: #87c0c9;
    border: 2px #87c0c9 dashed;
}

.aroleuo-nav:hover a {
    transform: scale(0.95);
    color: #CCC;
}

nav i:hover {
    color: #87c0c9;
    border: 2px #87c0c9 dashed;
}

.nav-arferol {
    display: none !important;
}

.hamburger-symudol {
    display: flex !important;
    position: relative;
    z-index: 667;
    height: 3rem;
}
.dewislen-symudol {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 666;
    background-color: #19262e;
    /* fade + slide */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px); /* start slightly above */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .dewislen-symudol.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* fade + slide to final position */
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

@media only screen and (min-width: 830px) {
    .nav-arferol {
        display: flex !important;
    }

    .hamburger-symudol, .dewislen-symudol {
        display: none !important;
    }
}

/* #endregion */

/* #region Hambuger */

.bars {
    width: 80px;
    cursor: pointer;
}

    .bars .line {
        fill: none;
        stroke: #fff;
        stroke-width: 5;
        stroke-linecap: square;
        transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
    }

        .bars .line.top {
            stroke-dasharray: 40 172;
        }

        .bars .line.middle {
            stroke-dasharray: 40 111;
        }

        .bars .line.bottom {
            stroke-dasharray: 40 172;
        }

    .bars.active .top {
        stroke-dashoffset: -132px;
    }

    .bars.active .middle {
        stroke-dashoffset: -71px;
    }

    .bars.active .bottom {
        stroke-dashoffset: -132px;
    }

/* #endregion */

/* #endregion */

/* #region DrosDro */

.ManylionPersonol h5 {
    font-weight: 700;
}

/* Textarea - HebTinyMCE - LlenwiFframBotwmHanesyddol */
.blwch-testun {
    height: 125px;
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    outline: none !important;
    padding: 0.7rem 0.5rem !important;
    resize: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    background: transparent;
}

/* YchwangeuRhiant */
.panel-body h6, .panel-body p {
    margin: 0;
}

.dropdown button {
    margin: 0 !important;
}

.pagination {
    padding: 1rem 1rem 1rem 0;
}

.pagination .page-link {
    color: #000 !important;
}

.newPageNav {
    height: 100%;
}

input {
    margin: 0 !important;
}

.dt-buttons {
    padding-top: 1rem !important;
}

.lled-15 {
    width: 15rem !important;
}

.dt-column-order {
    color: #000;
}

/* GwagleLlwydGwaelodTinyMce */
.tox .tox-edit-area__iframe {
    height: 100% !important;
}

/* #region Termau */

/* Patch terms.cshtml nol o db efo raw */
.Termau h1, .Termau h2 {
    font-size: 1.1rem;
}

/* #endregion */

/* #endregion */

/* #region Botwm */

.botwm {
    min-height: 2.7rem;
    background-image: linear-gradient(45deg, #1e5fbf 0%, var(--prif-lliw) 50%, #6fb8ff 100%);
    box-shadow: 3px 3px 0px rgb(183, 183, 183);
    color: #FFF;
    border: #FFF solid 3px;
    border-radius: 1.1rem;
    padding: 0.5rem 1rem;
}

    .botwm:disabled {
        min-height: 2.7rem;
        background-color: #CCC;
        color: #000;
        border: none;
    }

.cefndir-botwm {
    background-color: var(--prif-lliw);
    color: #FFF;
    border: none;
}

.cefndir-botwm:disabled {
    background-color: #CCC;
    color: #000;
    border: none;
}

.cefndir-plaen {
    background-color: #FFF;
    color: #000;
    border: 1px solid #000;
}

.cefndir-botwm, .cefndir-plaen {
    min-height: 2.7rem;
    width: fit-content;
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    border-radius: 0.7rem;
    text-align: center;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

    .cefndir-botwm:hover {
        cursor: pointer;
        background-color: #1c5a8e;
    }

    .cefndir-plaen:hover {
        cursor: pointer;
        background-color: #19262e;
        color: #FFF;
    }

    .cefndir-plaen.selected {
        background-color: #CCC;
    }

.cefndir-clir {
    background: none;
    border: none;
}

/* #endregion */

/* #region Cefndir */

.cefndir-default {
    background-color: white;
    border-radius: 10px;
    border: 1px solid #b6b6b6;
}

/* Archif */
.cefndir-archif {
    background-color: #4c4c4c !important;
    color: white !important;
}

/* #endregion */

/* #region Tablau */

.tabl-streipiog td:nth-child(even) {
    background-color: #f2f2f2;
}

.tabl-archif {
    color: white;
}

.funky-table {
    width: 100%;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 3px solid rgba(0,0,0,0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

    .funky-table thead {
        background: linear-gradient(45deg, #1e5fbf 0%, var(--prif-lliw) 50%, #6fb8ff 100%);
    }

        .funky-table thead th {
            padding: 14px 16px;
            font-weight: 700;
            letter-spacing: 0.6px;
            font-size: 0.85rem;
            text-transform: uppercase;
            color: white;
            background: transparent;
            border-bottom: 1px solid rgba(255, 255, 255, 0.25);
            white-space: nowrap;
        }

    .funky-table tbody td,
    .funky-table tbody th {
        padding: 14px 16px;
        vertical-align: middle;
        font-size: 0.95rem;
        color: #222;
        background: #ffffff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        transition: all 0.2s ease-in-out;
    }

    .funky-table tbody tr:nth-child(even) td,
    .funky-table tbody tr:nth-child(even) th {
        background: #f7f8fc;
    }

    .funky-table tbody tr:hover td,
    .funky-table tbody tr:hover th {
        background: rgba(13, 110, 253, 0.06);
    }

    .funky-table td:first-child,
    .funky-table th:first-child {
        font-weight: 800;
    }

    /* Make strong text readable */
    .funky-table strong {
        color: #0d6efd !important;
    }

    /* Keep everything clean */
    .funky-table td:last-child {
        text-align: right;
        white-space: nowrap;
    }

/* #endregion */

/* #region Sgrol */

.sgrol {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* smooth on iOS */
    scroll-behavior: smooth; /* smooth jumps */
    /* Firefox scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.7) rgba(255, 255, 255, 0.1);
}

    /* WebKit scrollbar (Chrome, Safari, Edge) */
    .scroll::-webkit-scrollbar {
        width: 8px;
    }

    .scroll::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 8px;
    }

    .scroll::-webkit-scrollbar-thumb {
        background-color: rgba(100, 100, 100, 0.45);
        border-radius: 8px;
    }

        .scroll::-webkit-scrollbar-thumb:hover {
            background-color: rgba(100, 100, 100, 0.65);
        }

/* #endregion */

/* #region DropdownChwilioHidlo */

.dropdown-hidlo {
    position: relative;
    width: 300px;
}

    .dropdown-hidlo #dropdownSearch {
        width: 100%;
        padding: 11px 10px;
        box-sizing: border-box;
        border: 2px solid #000;
        border-radius: 0.3rem;
        cursor: pointer;
        -moz-appearance: none;
        appearance: none;
        background: #e8e8e8 url('data:image/svg+xml;utf8,<svg fill="%23555" height="26" viewBox="0 0 24 24" width="26" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
        background-size: 26px;
    }

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ccc;
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
    display: none;
    z-index: 1000;
}

    .dropdown-list .item {
        padding: 10px;
        cursor: pointer;
    }

        .dropdown-list .item:hover {
            background: #e0e0e0;
        }

/* #endregion */

/* #region Hover Gwybodaeth Icon "i" */

    .GwybodaethHover {
        position: relative;
        border: none;
        background: transparent;
        cursor: pointer;
        padding: 0.25rem;
    }

    .TestunGwybodaethHover {
        visibility: hidden;
        width: auto;
        min-width: 200px;
        background-color: #333;
        color: #fff;
        text-align: left;
        border-radius: 4px;
        padding: 0.5rem;
        position: absolute;
        z-index: 3;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s;
    }

        .TestunGwybodaethHover::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border-width: 5px;
            border-style: solid;
            border-color: #333 transparent transparent transparent;
        }

    .GwybodaethHover:hover .TestunGwybodaethHover {
        visibility: visible;
        opacity: 1;
    }

/* #endregion */

/* #region Hawliau */

.BlwchHawl {
    padding: 0.4rem 0.6rem;
    background-color: #dddddd;
    border-radius: 0.5rem;
    color: #bebebe;
    border: 1px solid #FFF;
    box-shadow: 3px 3px 0px rgb(183, 183, 183);
}

    .BlwchHawl.active {
        background-image: linear-gradient(45deg, rgb(100, 61, 219) 0%, rgb(217, 21, 239) 100%);
        box-shadow: 3px 3px 0px rgb(183, 183, 183);
        color: white;
    }

/* #endregion */

/* #region Dashfwrdd */

.BlwchTab {
    border: 3px solid #19262e;
    border-top-right-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    padding: 0.5rem
}

.EitemDashfwrdd {
    height: 100%;
    width: 100%;
    border: 3px solid #19262e;
    border-radius: 0.5rem;
}

.TeitlDashfwrdd {
    padding: 0.5rem;
    font-size: 1.3rem;
    background-color: #19262e;
    color: white;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

.siart-container {
    display: flex;
    width: 100%;
    height: 330px;
    justify-content: center;
    align-items: center;
}

    .siart-container canvas, .siart-bach-container canvas {
        flex: 1 1 100%;
        width: 100% !important;
        height: 100% !important;
    }

.siart-bach-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.RhifPMG {
    background-color: #4ca4fd;
    border: 3px solid #2691f7;
    border-radius: 50%;
    width: 100px;
    height: 100px;
}

.MaxLled {
    max-width: 1300px;
}

/* #endregion Dashfwrdd */

/* #region Hysbysiadau */

.ClochNiferNodiadau {
    position: absolute;
    top: -0.4rem;
    right: -0.4rem;
    min-width: 1.4rem;
    height: 1.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4rem;
    padding: 0 0.4rem;
    color: #fff;
    background: #e74c3c;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

/* #endregion Hysbysiadau */

/* #region Tabs */

    .tabs {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.85rem 1.8rem;
        font-weight: 800;
        font-size: 0.95rem;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        text-decoration: none;
        color: #1c1c1c;
        background: #CCC;
        border-left: 3px solid #1c1c1c;
        transition: all 0.18s ease;
        box-shadow: 0 0 0 rgba(0,0,0,0);
    }

        .tabs:hover {
            box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
        }

        .tabs.active {
            background: #19262e;
            color: white;
            border-color: #1c1c1c;
            box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
        }

            .tabs.active:hover {
                box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.5);
            }

/* #endregion Tabs */

/* #region Cardiau */

.cerdyn {
    height: 100%;
    min-height: 20rem;
    width: 100%;
    padding: 1rem;
    border: 5px solid transparent;
    border-radius: 1rem;
    background: linear-gradient(white, white) padding-box, linear-gradient(45deg, #1e5fbf 0%, var(--prif-lliw) 50%, #6fb8ff 100%) border-box;
}

/* #endregion */

.bathodyn {
    padding: 0.5rem;
    border-radius: 1rem;
    background-image: linear-gradient(45deg, #1e5fbf 0%, var(--prif-lliw) 50%, #6fb8ff 100%);
    box-shadow: 3px 3px 0px rgb(183, 183, 183);
}

.ffin {
    height: auto;
    width: min-content;
    padding: 1rem;
    border: 5px solid transparent;
    border-radius: 1rem;
    background: linear-gradient(white, white) padding-box, linear-gradient(45deg, #1e5fbf 0%, var(--prif-lliw) 50%, #6fb8ff 100%) border-box;
    background-color: #fff;
}

.saethauCyfnewid {
    font-size: 1.2rem;
    color: var(--prif-lliw);
}

.BotwmDewiswyd {
    background-color: var(--prif-lliw);
    color: #FFF;
    border: 0;
}

/* #region Base */

/* #region Lliwiau*/

.gwyn {
    color: #FFF !important;
}

.glas {
    color: #0d6efd !important;
}

.du {
    color: #000 !important;
}

.llwyd {
    color: #b6b6b6;
}

.CefndirCoch {
    background-color: #ab1202;
}

.CefndirGwyn {
    background-color: #FFF;
}

.coch {
    color: #ab1202;
}

.gwyrdd {
    color: #3dc38c;
}

/* #endregion */

/* #region Colofnau */

.col-1-base {
    width: 100%;
}

.col-2-base {
    width: 100%;
}

.col-3-base {
    width: 100%;
}

.col-4-base {
    width: 100%;
}

.col-5-base {
    width: 100%;
}

.col-6-base {
    width: 100%;
}

.col-7-base {
    width: 100%;
}

.col-8-base {
    width: 100%;
}

.col-9-base {
    width: 100%;
}

.col-10-base {
    width: 100%;
}

.col-11-base {
    width: 100%;
}

.col-12-base {
    width: 100%;
}

/* #endregion */

/* #region Containers */

.container-dim-flex {
    height: auto;
    width: 100%;
}
 
.container-flex {
    display: flex;
    height: auto;
    width: 100%;
}

.container-awto {
    display: flex;
    height: auto;
    width: auto;
}

/* #endregion */

/* #region Offer */

.canoli-heb-pwysig {
    display: flex;
    justify-content: center;
    align-items: center;
}

.canoli {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.canoli-fertigol {
    display: flex;
    align-items: center;
}

.canoli-dde {
    display: flex;
    justify-content: right;
    align-items: center;
}

.canoli-chwith {
    display: flex;
    justify-content: left;
    align-items: center;
}

.chwith {
    display: flex;
    align-items: flex-start;
}

.chwith-testun {
    text-align: left;
}

.canoli-testun {
    text-align: center;
}

.dde-testun {
    text-align: right;
}

.colofn {
    display: flex;
    flex-direction: column;
}

.rhes {
    display: flex;
    flex-direction: row;
}

.wrap-symudol {
    flex-wrap: wrap;
}

.wrap {
    flex-wrap: wrap;
}

.wrap-bob-amser {
    flex-wrap: wrap;
}

.llenwi {
    height: 100%;
    width: 100%;
}

.dim-wrap {
    display: flex;
    flex-wrap: nowrap;
}

.dim-testun-wrap {
    white-space: nowrap;
}

.relatif {
    position: relative;
}

.wrap-geiriau {
    white-space: normal !important;
    overflow-wrap: break-word;
}

/* #endregion */

/* #region Margin */

.margin-0 {
    margin: 0 !important;
}

/* #endregion */

/* #region Grid */

.grid-2 > *, .grid-3 > *, .grid-4 > *, .grid-5 > *, .grid-6 > * {
    flex-grow: 0;
    flex-shrink: 0;
}

.grid-2 > * {
    flex-basis: calc((100% - 1rem) / 2);
}

.grid-3 > * {
    flex-basis: calc((100% - 2rem) / 3);
}

.grid-4 > * {
    flex-basis: calc((100% - 3rem) / 4);
}

.grid-5 > * {
    flex-basis: calc((100% - 4rem) / 5);
}

.grid-6 > * {
    flex-basis: calc((100% - 5rem) / 6);
}

@media (max-width: 1024px) {
    .grid-5 > *, .grid-6 > * {
        flex-basis: calc((100% - 2rem) / 3);
    }
}

@media (max-width: 768px) {
    .grid-2 > *, .grid-3 > *, .grid-4 > *,
    .grid-5 > *, .grid-6 > * {
        flex-basis: calc((100% - 1rem) / 2);
    }
}

@media (max-width: 650px) {
    .grid-2 > * {
        flex-basis: 100%;
    }
}

@media (max-width: 480px) {
    .grid-3 > *, .grid-4 > *,
    .grid-5 > *, .grid-6 > * {
        flex-basis: 100%;
    }
}

/* #endregion Grid */

/* #region Padding */

/* #region Cyffredinol */

.p-02 {
    padding: 0.2rem;
}

.p-05 {
    padding: 0.5rem;
}

.p-1-base {
    padding: 1rem;
}

.p-2-base {
    padding: 2rem;
}

.p-3-base {
    padding: 3rem;
}

.p-4-base {
    padding: 4rem;
}

.p-5-base {
    padding: 5rem;
}

.p-6-base {
    padding: 6rem;
}

/* #endregion */

/* #region PaddingUwch */

.p-u-02 {
    padding-top: 0.2rem;
}

.p-u-05 {
    padding-top: 0.5rem;
}

.p-u-1 {
    padding-top: 1rem;
}

.p-u-2 {
    padding-top: 2rem;
}

.p-u-3 {
    padding-top: 3rem;
}

.p-u-4 {
    padding-top: 4rem;
}

.p-u-5 {
    padding-top: 5rem;
}

/* #endregion */

/* #region PaddingGwaelod */

.p-g-02 {
    padding-bottom: 0.2rem;
}

.p-g-05 {
    padding-bottom: 0.5rem;
}

.p-g-1 {
    padding-bottom: 1rem;
}

.p-g-2 {
    padding-bottom: 2rem;
}

.p-g-3 {
    padding-bottom: 3rem;
}

.p-g-4 {
    padding-bottom: 4rem;
}

.p-g-5 {
    padding-bottom: 5rem;
}

/* #endregion */

/* #region PaddingDde */

.p-dd-02 {
    padding-right: 0.2rem;
}

.p-dd-05 {
    padding-right: 0.5rem;
}

.p-dd-1 {
    padding-right: 1rem;
}

.p-dd-2 {
    padding-right: 2rem;
}

.p-dd-3 {
    padding-right: 3rem;
}

/* #endregion */

/* #region PaddingChwith */

.p-ch-02 {
    padding-left: 0.2rem;
}

.p-ch-05 {
    padding-left: 0.5rem;
}

.p-ch-1 {
    padding-left: 1rem;
}

.p-ch-2 {
    padding-left: 2rem;
}

.p-ch-3 {
    padding-left: 3rem;
}

.p-ch-4 {
    padding-left: 4rem;
}

.p-ch-5 {
    padding-left: 5rem;
}

.p-ch-6 {
    padding-left: 6rem;
}

/* #endregion */

/* #region PaddingUwchGwaelod */

.p-ug-02 {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

.p-ug-05 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.p-ug-1 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.p-ug-2 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.p-ug-3 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.p-ug-4 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.p-ug-5 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* #endregion */

/* #region PaddingDdeChwith */

.p-ddch-02 {
    padding-right: 0.2rem;
    padding-left: 0.2rem;
}

.p-ddch-05 {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.p-ddch-1 {
    padding-right: 1rem;
    padding-left: 1rem;
}

.p-ddch-2 {
    padding-right: 2rem;
    padding-left: 2rem;
}

.p-ddch-3 {
    padding-right: 3rem;
    padding-left: 3rem;
}

.p-ddch-4 {
    padding-right: 4rem;
    padding-left: 4rem;
}

.p-ddch-5 {
    padding-right: 5rem;
    padding-left: 5rem;
}

/* #endregion */

/* #endregion Padding */

/* #region Gap */

.gap-02 {
    gap: 0.2rem;
}

.gap-05 {
    gap: 0.5rem;
}

.gap-1-base {
    gap: 1rem;
}

.gap-2-base {
    gap: 2rem;
}

.gap-3-base {
    gap: 3rem;
}

.gap-4-base {
    gap: 4rem;
}

.gap-5-base {
    gap: 5rem;
}

/* #endregion */

/* #region Hyd & Lled */

.hyd-100vh {
    height: 100vh;
}

.min-hyd-80vh {
    min-height: 80vh;
}

.hyd-10 {
    height: 10rem;
}

/* #endregion */

/* #region Meintiau */

.maint-hyd-1 {
    height: 1rem;
}

.maint-hyd-2 {
    height: 2rem;
}

.maint-hyd-3 {
    height: 3rem;
}

.maint-lled-1 {
    width: 1rem;
}

.maint-lled-2 {
    width: 2rem;
}

.maint-lled-3 {
    width: 3rem;
}

.maint-hll-1 {
    height: 1rem;
    width: 1rem;
}

.maint-hll-2 {
    height: 2rem;
    width: 2rem;
}

.maint-hll-3 {
    height: 3rem;
    width: 3rem;
}

.maint-10 {
    height: 10rem;
    width: 10rem;
}

.maint-u8-ll14 {
    height: 8rem;
    width: 14rem;
}

/* #endregion */

/* #region Maint Ffont */

.maint-ffont-06 {
    font-size: 0.6rem;
}

.maint-ffont-08 {
    font-size: 0.8rem;
}

.maint-ffont-1 {
    font-size: 1rem;
}

.maint-ffont-1-7 {
    font-size: 1.7rem;
}

.maint-ffont-2 {
    font-size: 2rem;
}

.maint-ffont-2-3 {
    font-size: 2.3rem;
}

.maint-ffont-2-5 {
    font-size: 2.5rem;
}

.maint-ffont-3 {
    font-size: 3rem;
}

/* #endregion */

/* #region BorderRadius */

.border-radius-02 {
    border-radius: 0.2rem;
}

.border-radius-05 {
    border-radius: 0.5rem;
}

.border-radius-07 {
    border-radius: 0.7rem;
}

.border-radius-1 {
    border-radius: 1rem;
}

.border-radius-2 {
    border-radius: 2rem;
}

/* #endregion BorderRadius */

/* #endregion Base */

/* #region #cynlluniau_adroddiadau */

#modal-categori-cynlluniau-adroddiadau, #modal-addasu-categori-cynlluniau-adroddiadau {
    display: none;
}

.modal-tomos {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    width: 30rem;
    z-index: 1000;
}

.cuddio {
    display: none;
}

.cursor-pointer {
    cursor: pointer;
}

/* #endregion */

/* #region botwm-enabled-2fa */

.maint-botwm {
    height: 20px;
    width: auto;
    padding: 1rem;
    border-radius: 10px;
    background-color: #5cb85c;
    color: #FFF;
    text-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.botwm-plaen {
    background: none;
    border: none;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}
    .botwm-plaen:hover {
        color: #c70505;
    }

.dde {
    display: flex;
    justify-content: flex-end;
}

.border {
    border: 1px solid #b6b6b6;
    border-radius: 5px;
}

.border-gwaelod {
    border-bottom: 1px solid #b6b6b6;
    width: 100%;
}

.cylch {
    height: 150px;
    width: 150px;
    border-radius: 100%;
    background-color: #e6e7e9;
}

nav-item:hover {
    color: #FFF !important;
}

.teitl {
    font-size: 40px;
}

.is-deitl {
    font-size: 20px;
}

.teitl-h3 {
    font-size: 27px;
}

.text-twofa-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 3rem 3rem 3rem;
    text-align: center;
}

.twofa-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    height: 125px;
    width: 100%;
    margin: 0;
}

.twofa-rhif-ffon-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 3rem 3rem 3rem;
}

.botwm-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 0 8rem 0;
}

.input-newydd {
    height: 85px;
    width: 50px;
    font-size: 40px;
    text-align: center;
    border-width: 0px;
    border-radius: 5px;
    background-color: #19262e;
    color: #FFF;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    text-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.input-rhif-ffon {
    height: 55px;
    width: 275px;
}

.strong {
    color: #C70505;
}

.teitl strong {
    font-weight: 600;
    color: #C70505;
}

.is-deitl strong {
    text-transform: uppercase;
    font-weight: 600;
    color: #C70505;
}

.col-30 h2 {
    text-align: center;
}

/* #endregion */

/* #region BotymauDrosDro */

.saveButton:disabled {
    background-color: #EBEBEB !important;
    color: #696969 !important;
    border: 0;
}

/* #endregion */

/* #region Footer */

.hr-newydd {
    width: 100%;
    border: 2px solid #FFF;
    border-radius: 2px;
}

footer {
    background-color: #19262e;
    color: #FFF;
}

    footer a {
        color: #FFF;
    }

    footer h3 {
        font-size: 2rem;
    }

.logo-gllm-powys {
    width: 130px;
    height: 60px;
}

.logo-gdd {
    width: 250px;
    height: 80px;
}

.logo-gwynedd {
    height: 90px;
    width: 60px;
}

.logo-mon {
    height: 57px;
    width: 140px;
}

.logo-adych {
    height: 110px;
    width: 90px;
}

/* #endregion */

/* #region DrosDro - Tabl Disgyblion pupil list v2 */

.HidloDigyblActif {
    border-color: var(--prif-lliw) !important;
}

/* #endregion */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {

    .wrap-symudol {
        flex-wrap: nowrap;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {

    .col-1-base {
        width: 8.33%;
    }

    .col-2-base {
        width: 16.66%;
    }

    .col-3-base {
        width: 25%;
    }

    .col-4-base {
        width: 33.33%;
    }

    .col-5-base {
        width: 41.66%;
    }

    .col-6-base {
        width: 50%;
    }

    .col-7-base {
        width: 58.33%;
    }

    .col-8-base {
        width: 66.66%;
    }

    .col-9-base {
        width: 75%;
    }

    .col-10-base {
        width: 83.33%;
    }

    .col-11-base {
        width: 91.66%;
    }

    .col-12-base {
        width: 100%;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {

    .wrap {
        flex-wrap: nowrap;
    }
    
    #ychwaneguYsgolGorff {
        width: 45rem;
    }
}

/* Large devices (laptops/desktops, 992px and down) */
@media only screen and (max-width: 992px) {
    .wrap {
        flex-wrap: wrap !important;
    }
}

/* Large devices (Sgrins mwy, 1025px and up) */
@media only screen and (min-width: 1024px) {

}
