/* 縮小失敗。正在傳回未縮小的內容。
(1746,27): run-time error CSS1030: Expected identifier, found '.'
(1746,45): run-time error CSS1031: Expected selector, found ')'
(1746,45): run-time error CSS1025: Expected comma or open brace, found ')'
 */
.table > thead > tr > th {
    background: #ffd800;
    color: #000000;
  
}


.table > tbody > tr > td {
    color: #000000;
   
}

.pregrptb > tbody > tr > th {
    color: #000000;
    border: 2px solid;
}

.pregrptb > tbody > tr > td {
    color: #000000;
    border: 2px solid;
}


input[type="checkbox"] {
    width: 25px; /*Desired width*/
    height: 25px; /*Desired height*/
}

input[type=radio] {
    width: 1.5em;
    height: 1.5em;
}


#spancolor {
    color: red;
}

.redcolr {
    color: red
}

.sports-public-page {
    background: #eef2f6;
    color: #263746;
}

.sports-public-page > .body-content {
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(30, 55, 80, 0.08);
}

.navbar .navbar-nav li a.nav-unavailable,
.navbar .navbar-nav li a.nav-unavailable:hover,
.navbar .navbar-nav li a.nav-unavailable:focus {
    color: #8a96a1 !important;
    cursor: not-allowed;
    background: transparent !important;
}

.nav-unavailable-status {
    margin-left: 5px;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
}

.sports-banner {
    display: block;
    width: 100%;
    height: auto;
}

.event-identity {
    margin: 0 0 28px;
    padding: 18px 24px 20px;
    border-bottom: 1px solid #dbe3ea;
    background: #ffffff;
    text-align: center;
}

.event-identity-name {
    margin: 0;
    color: #173b5e;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.event-identity-warning {
    margin-top: 8px;
    color: #8a5b00;
    font-size: 14px;
}

.event-identity-warning a {
    color: #8a5b00;
    font-weight: 700;
    text-decoration: underline;
}

.sports-admin-page .event-identity {
    margin: 24px 28px 0;
    padding-top: 20px;
    border: 1px solid #dce4eb;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(30, 55, 80, 0.06);
}

.sports-admin-login-page {
    min-height: 100vh;
    background: linear-gradient(145deg, #eef3f8 0%, #f8fafc 55%, #e8f0f7 100%);
}

.sports-admin-login-page .navbar-brand {
    color: #173b5e !important;
    font-weight: 600;
}

.sports-admin-login-page .body-content {
    padding-top: 24px;
}

.sports-admin-login-page .event-identity {
    margin-bottom: 30px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(30, 55, 80, 0.07);
}

.member-login-page,
.admin-login-page {
    padding: 0 0 24px;
}

.login-alert {
    max-width: 680px;
    margin: 0 auto 20px;
}

.login-alert ul {
    margin-bottom: 0;
}

.login-card {
    width: 100%;
    padding: 30px 34px;
    border: 1px solid #dce4eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(30, 55, 80, 0.12);
}

.login-card-header {
    margin-bottom: 26px;
    text-align: center;
}

.login-card-header h2 {
    margin: 10px 0 6px;
    color: #173b5e;
    font-size: 26px;
    font-weight: 600;
}

.login-card-header p {
    margin: 0;
    color: #6c7b88;
}

.login-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e8f2fb;
    color: #2477b3;
    font-size: 20px;
}

.login-form .form-control {
    max-width: none;
    border-color: #cbd6df;
    border-radius: 7px;
    box-shadow: none;
}

.login-form .form-control:focus {
    border-color: #3b8bc2;
    box-shadow: 0 0 0 3px rgba(59, 139, 194, 0.14);
}

.login-form .control-label {
    margin-bottom: 7px;
    color: #33495c;
}

.login-submit {
    margin-top: 8px;
    border: 0;
    border-radius: 7px;
    background: #2477b3;
    font-weight: 600;
}

.login-submit:hover,
.login-submit:focus {
    background: #1b608f;
}

.login-account-help {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-left: 3px solid #64a8d4;
    background: #f3f8fc;
    color: #5c6e7c;
    font-size: 14px;
    line-height: 1.7;
}

.login-notice {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e4e9ee;
    color: #4b5d6a;
    line-height: 1.7;
}

.login-notice h3 {
    margin: 0 0 12px;
    color: #8a5b00;
    font-size: 17px;
    font-weight: 600;
}

.login-notice #noteitems {
    overflow-wrap: anywhere;
}

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 20px;
    padding: 4px 6px 16px;
    border-bottom: 1px solid #dbe3ea;
}

.home-section-title {
    display: flex;
    align-items: center;
    color: #173b5e;
}

.home-section-title > .glyphicon {
    margin-right: 14px;
    color: #2477b3;
    font-size: 28px;
}

.home-section-title p {
    margin: 0 0 2px;
    color: #7a8a98;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.home-section-title h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 600;
}

.home-registration-button {
    border: 0;
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(196, 122, 0, 0.2);
    font-weight: 600;
}

.announcement-card {
    overflow: hidden;
    border: 1px solid #dce4eb;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(30, 55, 80, 0.07);
}

.announcement-card .table-responsive {
    margin-bottom: 0;
    border: 0;
}

.announcement-table {
    margin-bottom: 0;
}

.announcement-table > thead > tr > th {
    padding: 14px 12px;
    border-bottom: 0;
    background: #173b5e;
    color: #ffffff;
}

.announcement-table > tbody > tr > td {
    padding: 14px 12px;
    border-color: #e8edf1;
    vertical-align: middle;
}

.announcement-subject {
    font-weight: 600;
}

.announcement-pin {
    color: #d9534f;
}

.public-page {
    width: 100%;
    max-width: 100%;
    padding-bottom: 28px;
}

.public-content-card {
    overflow: hidden;
    border: 1px solid #dce4eb;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(30, 55, 80, 0.07);
}

.public-table-scroll {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    border: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.public-data-table {
    min-width: 560px;
    margin-bottom: 0;
}

.public-score-table {
    min-width: 680px;
}

.public-data-table > thead > tr > th {
    padding: 14px 16px;
    border-bottom: 0;
    background: #173b5e;
    color: #ffffff;
    white-space: nowrap;
}

.public-data-table > tbody > tr > td {
    padding: 14px 16px;
    border-color: #e8edf1;
    vertical-align: middle;
}

.public-action-cell .btn {
    border: 0;
    border-radius: 6px;
    background: #2477b3;
}

.public-action-cell .btn:hover,
.public-action-cell .btn:focus {
    background: #1b608f;
}

.public-link-section {
    padding: 26px 26px 6px;
}

.public-link-grid {
    display: flex;
    flex-wrap: wrap;
}

.public-link-grid > [class*="col-"] {
    display: flex;
    margin-bottom: 20px;
}

.public-link-card {
    display: flex;
    flex: 1;
    align-items: center;
    flex-direction: column;
    min-height: 170px;
    padding: 25px 22px;
    border: 1px solid #dce4eb;
    border-radius: 9px;
    background: #f8fbfd;
    color: #173b5e;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.public-link-card:hover,
.public-link-card:focus {
    border-color: #8bbadd;
    color: #173b5e;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(30, 55, 80, 0.12);
    transform: translateY(-2px);
}

.public-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 15px;
    border-radius: 50%;
    background: #e8f2fb;
    color: #2477b3;
    font-size: 19px;
}

.public-link-card strong {
    margin-bottom: 14px;
    font-size: 18px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.public-link-action {
    margin-top: auto;
    color: #2477b3;
    font-size: 13px;
    font-weight: 600;
}

.public-link-action .glyphicon {
    margin-left: 4px;
    font-size: 9px;
}

.public-result-list {
    margin-bottom: 0;
}

.public-result-panel {
    overflow: hidden;
    margin-bottom: 12px;
    border-color: #dce4eb;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(30, 55, 80, 0.06);
}

.public-result-panel > .panel-heading {
    padding: 0;
    border-color: #e3e9ee;
    background: #ffffff;
}

.public-result-panel .panel-title {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.public-result-panel .panel-title > a {
    display: block;
    flex: 1;
    padding: 17px 18px 17px 8px;
    color: #173b5e;
    text-decoration: none;
}

.public-result-panel .panel-title > a:hover,
.public-result-panel .panel-title > a:focus {
    color: #2477b3;
}

.public-result-status {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin-left: 18px;
    border-radius: 50%;
}

.public-result-status-ready {
    background: #35a56f;
}

.public-result-status-pending {
    background: #d9534f;
}

.public-result-panel .panel-body {
    padding: 0;
    border-top: 0 !important;
}

.public-result-panel .public-empty-state {
    padding: 20px 24px;
    background: #fffaf0;
    color: #7d652f;
}

.registration-page {
    width: 100%;
    max-width: 100%;
    padding-bottom: 28px;
    overflow: hidden;
}

.registration-overview,
.registration-panel {
    border: 1px solid #dce4eb;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(30, 55, 80, 0.08);
}

.registration-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 24px 28px;
}

.registration-overview-title {
    display: flex;
    align-items: center;
    color: #173b5e;
}

.registration-overview-title > .glyphicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    margin-right: 16px;
    border-radius: 50%;
    background: #e8f2fb;
    color: #2477b3;
    font-size: 21px;
}

.registration-overview-title p,
.admin-dashboard-heading p {
    margin: 0 0 3px;
    color: #7a8a98;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.registration-overview-title h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 600;
}

.registration-steps {
    margin: 0;
    padding: 13px 20px 13px 42px;
    border-left: 3px solid #dba32d;
    background: #fffaf0;
    color: #6f5827;
    line-height: 1.8;
}

.registration-panel {
    padding: 26px 28px 30px;
}

.registration-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.registration-section-header h3 {
    margin: 2px 0 0;
    color: #173b5e;
    font-size: 21px;
    font-weight: 600;
}

.registration-section-kicker {
    color: #7a8a98;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.registration-add-button {
    border: 0;
    border-radius: 7px;
    background: #2477b3;
    font-weight: 600;
}

.registration-add-button:hover,
.registration-add-button:focus {
    background: #1b608f;
}

.registration-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.registration-table-scroll .dataTables_wrapper {
    width: 100%;
    min-width: 880px;
    max-width: none;
}

.registration-table {
    width: 100% !important;
    min-width: 880px;
    margin-bottom: 0 !important;
}

.registration-table > thead > tr > th {
    border-bottom: 0;
    background: #173b5e;
    color: #ffffff;
    vertical-align: middle;
}

.registration-table > tbody > tr > td {
    border-color: #e6ecf1;
    vertical-align: middle;
}

.registration-table .registration-row-number {
    width: 64px;
    min-width: 64px;
    text-align: center;
    white-space: nowrap;
}

.registration-table .btn-lg {
    padding: 7px 10px;
    font-size: 13px;
}

.registration-divider {
    margin: 28px 0;
    border-top-color: #dbe3ea;
}

.registration-login-prompt {
    margin-bottom: 0;
}

.registration-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(23, 59, 94, 0.24);
}

.registration-modal .modal-header {
    padding: 18px 22px;
    border-bottom: 0;
    background: #173b5e;
    color: #ffffff;
}

.registration-modal .modal-header .modal-title,
.registration-modal .modal-header .text-info,
.registration-modal .modal-header .text-primary {
    color: inherit;
    font-weight: 600;
}

.registration-modal .modal-header .close {
    color: #ffffff;
    opacity: 0.85;
    text-shadow: none;
}

.registration-modal .modal-body {
    padding: 24px 24px 20px;
    background: #f8fafc;
}

.registration-modal .form-control {
    border-color: #cfd9e2;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: none;
}

.registration-modal .form-control:focus {
    border-color: #2477b3;
    box-shadow: 0 0 0 2px rgba(36, 119, 179, 0.12);
}

.registration-modal input[type="submit"].btn {
    min-width: 96px;
    border: 0;
    border-radius: 6px;
    font-weight: 600;
}

.registration-modal .player-lookup-group .input-group-btn .btn {
    height: 34px;
    border-color: #9fb3c5;
    border-radius: 0 6px 6px 0;
    color: #173b5e;
    font-weight: 600;
}

.registration-modal .player-lookup-group .help-block {
    min-height: 20px;
    margin: 6px 0 0;
}

.team-edit-hero {
    margin: 0 0 24px;
    padding: 24px 28px;
    border: 1px solid #dce4eb;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(30, 55, 80, 0.08);
    color: #173b5e;
}

.team-edit-hero > .container {
    width: auto;
    padding: 0;
}

.team-edit-hero h2 {
    margin: 3px 0 4px;
    font-size: 25px;
    font-weight: 600;
}

.team-edit-hero p {
    margin: 0;
    color: #6f7f8e;
    font-size: 14px;
}

.team-edit-kicker {
    color: #2477b3;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.team-edit-page {
    width: 100%;
    padding-right: 0;
    padding-bottom: 28px;
    padding-left: 0;
}

.team-edit-toolbar {
    margin: 0 0 16px;
}

.team-edit-panel {
    margin-bottom: 22px;
    padding: 22px 20px 20px;
    border: 1px solid #dce4eb;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(30, 55, 80, 0.08);
}

.team-edit-panel h4 {
    margin: 6px 0 18px;
    color: #173b5e;
    font-size: 19px;
    font-weight: 600;
}

.team-edit-panel .btn-primary {
    border: 0;
    border-radius: 6px;
    background: #2477b3;
    font-weight: 600;
}

.team-edit-panel .btn-primary:hover,
.team-edit-panel .btn-primary:focus {
    background: #1b608f;
}

.team-edit-table {
    width: 100%;
    margin-bottom: 0;
    background: #ffffff;
}

.team-player-table {
    min-width: 980px;
}

.team-edit-table > thead > tr > th {
    border-bottom: 0;
    background: #173b5e;
    color: #ffffff;
    vertical-align: middle;
    white-space: nowrap;
}

.team-edit-table > tbody > tr > td {
    border-color: #e6ecf1;
    vertical-align: middle;
}

.team-edit-table .registration-row-number {
    width: 58px;
    min-width: 58px;
    text-align: center;
    white-space: nowrap;
}

.team-edit-table td.text-right {
    white-space: nowrap;
}

.team-edit-table td.text-right .btn + .btn {
    margin-left: 6px;
}

.team-edit-table .btn-sm {
    min-width: 54px;
    border-radius: 5px;
}

@media (max-width: 767px) {
    .registration-modal .modal-body {
        padding: 20px 18px 16px;
    }

    .team-edit-hero {
        padding: 20px;
    }

    .team-edit-hero h2 {
        font-size: 21px;
        line-height: 1.45;
    }

    .team-edit-panel {
        padding: 18px 14px;
    }

    .team-edit-panel .pull-right {
        float: none !important;
        margin-bottom: 14px;
    }

    .team-edit-panel .pull-right .btn {
        width: 100%;
    }
}

.sports-admin-page {
    background: #eef3f8;
}

.sports-admin-page .mother-grid-inner {
    min-height: 100vh;
    background: #eef3f8;
}

.sports-admin-page .header-main {
    min-height: 78px;
    margin: 0 28px;
    padding: 0 28px;
    border: 1px solid #dce4eb;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 3px 14px rgba(30, 55, 80, 0.08);
}

.admin-header-brand {
    display: inline-flex;
    align-items: center;
    float: left;
    min-height: 78px;
    color: #173b5e;
}

.admin-header-brand:hover,
.admin-header-brand:focus {
    color: #173b5e;
    text-decoration: none;
}

.admin-header-brand > .glyphicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-radius: 50%;
    background: #e8f2fb;
    color: #2477b3;
}

.admin-header-brand strong,
.admin-header-brand small {
    display: block;
}

.admin-header-brand strong {
    font-size: 17px;
}

.admin-header-brand small {
    margin-top: 2px;
    color: #83919d;
    font-size: 9px;
    letter-spacing: 0.13em;
}

.sports-admin-page .profile_details {
    width: auto;
    min-width: 230px;
    padding: 8px 18px;
    background: #173b5e;
}

.sports-admin-page .inner-block {
    padding: 28px 0 34px;
    background: #eef3f8;
}

.admin-page-shell {
    margin: 0 28px;
    padding: 28px;
    overflow-x: auto;
    border: 1px solid #dce4eb;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(30, 55, 80, 0.08);
    color: #33495c;
}

.admin-page-shell > .agile-tables {
    margin: 0;
    padding: 0;
    background: transparent;
}

.admin-page-shell .admin-dashboard {
    padding: 0;
}

.admin-page-shell h2,
.admin-page-shell h3 {
    color: #173b5e;
    font-weight: 600;
}

.admin-page-shell > h2:first-child,
.admin-page-shell > h3:first-child,
.admin-page-shell > .agile-tables > h2:first-child,
.admin-page-shell > .agile-tables > h3:first-child {
    margin-top: 0;
}

.admin-page-shell .row.table-responsive {
    margin-right: 0;
    margin-left: 0;
}

.admin-page-shell .table-responsive {
    max-width: 100%;
    margin-bottom: 0;
    overflow-x: auto;
    border: 0;
}

.admin-page-shell table.table {
    width: 100% !important;
    margin-bottom: 20px;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.admin-page-shell table.table > thead > tr > th {
    padding: 13px 12px;
    border-color: #2b5c82;
    background: #173b5e !important;
    color: #ffffff !important;
    font-weight: 600;
    vertical-align: middle;
}

.admin-page-shell table.table > tbody > tr > td {
    padding: 12px;
    border-color: #e1e8ee;
    color: #33495c;
    vertical-align: middle;
    word-break: break-word;
}

.admin-page-shell table.table > tbody > tr:nth-child(even) > td {
    background: #f8fafc;
}

.admin-page-shell table.table > tbody > tr:hover > td {
    background: #edf5fb;
}

.admin-page-shell .form-control {
    max-width: 100%;
    border-color: #cbd6df;
    border-radius: 6px;
    box-shadow: none;
}

.admin-page-shell input.form-control,
.admin-page-shell select.form-control {
    min-height: 38px;
}

.admin-page-shell .form-control:focus {
    border-color: #4a90c2;
    box-shadow: 0 0 0 3px rgba(36, 119, 179, 0.12);
}

.admin-page-shell .control-label,
.admin-page-shell label {
    color: #33495c;
    font-weight: 600;
}

.admin-page-shell .btn {
    border-radius: 6px;
    font-weight: 600;
}

.admin-page-shell .btn-primary,
.admin-page-shell .btn-info {
    border-color: #2477b3;
    background: #2477b3;
    color: #fff;
}

.admin-page-shell .btn-primary:hover,
.admin-page-shell .btn-primary:focus,
.admin-page-shell .btn-info:hover,
.admin-page-shell .btn-info:focus {
    border-color: #185f93;
    background: #185f93;
}

.admin-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.admin-action-buttons .admin-action-form {
    margin: 0;
}

.admin-banner-maintenance-header {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.admin-banner-maintenance-header h3 {
    margin: 3px 0 6px;
}

.admin-banner-maintenance-header p {
    margin: 0;
    color: #667786;
}

.admin-banner-kicker {
    color: #2477b3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.admin-banner-front-link {
    flex: 0 0 auto;
}

.admin-banner-guidance {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
}

.admin-banner-guidance > .glyphicon {
    color: #2477b3;
    font-size: 24px;
}

.admin-banner-guidance strong,
.admin-banner-guidance span {
    display: block;
}

.admin-banner-guidance strong {
    margin-bottom: 3px;
}

.admin-banner-card {
    overflow: hidden;
    border: 1px solid #dce4eb;
    border-radius: 9px;
    background: #ffffff;
}

.admin-banner-card-header {
    padding: 18px 20px;
    border-bottom: 1px solid #dce4eb;
    background: #f8fafc;
}

.admin-banner-card-header h4 {
    margin: 0 0 4px;
    color: #173b5e;
    font-weight: 600;
}

.admin-banner-card-header span {
    color: #738290;
}

.admin-banner-preview-frame {
    padding: 24px;
    background: #eef3f8;
    text-align: center;
}

.admin-banner-preview {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 300px;
    margin: 0 auto;
    object-fit: contain;
    border: 1px solid #d5dee6;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(30, 55, 80, 0.12);
}

.admin-banner-actions {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.admin-banner-actions p,
.admin-banner-delete-form {
    margin: 0;
}

.admin-banner-empty {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
    padding: 20px;
    border: 1px dashed #b8c8d5;
    border-radius: 8px;
    background: #f8fafc;
}

.admin-banner-empty > .glyphicon {
    color: #8aa0b2;
    font-size: 32px;
}

.admin-banner-empty h4 {
    margin: 0 0 4px;
    color: #173b5e;
}

.admin-banner-empty p {
    margin: 0;
    color: #667786;
}

.admin-banner-dropzone {
    min-height: 190px;
    border-color: #8fb4cf;
    border-radius: 8px;
    background: #f8fbfd;
}

.login-notice-editor .cke_skin_kama,
.login-notice-editor .cke_skin_kama * {
    font-size: 14px !important;
}

.login-notice-editor .cke_skin_kama .cke_button a {
    height: 24px !important;
    padding: 4px 6px !important;
}

.login-notice-editor .cke_skin_kama .cke_button .cke_icon {
    margin: 4px 2px 0 !important;
    transform: scale(1.25);
    transform-origin: center;
}

.login-notice-editor .cke_skin_kama .cke_rcombo a {
    height: 28px !important;
    padding: 3px 4px !important;
}

.login-notice-editor .cke_skin_kama .cke_rcombo .cke_text {
    height: 28px !important;
    font-size: 14px !important;
    line-height: 28px !important;
}

.login-notice-editor .cke_skin_kama .cke_rcombo .cke_openbutton .cke_icon {
    margin: 4px 3px !important;
    transform: scale(1.15);
    transform-origin: center;
}

.admin-page-shell .panel {
    overflow: hidden;
    border-color: #dce4eb;
    border-radius: 8px;
    box-shadow: none;
}

.admin-page-shell .panel-default > .panel-heading {
    border-color: #dce4eb;
    background: #edf5fb;
    color: #173b5e;
}

.admin-page-shell .game-place-page .panel {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #dce4eb;
    background: #ffffff;
    color: #33495c;
}

.admin-page-shell .game-place-page .panel-heading {
    padding: 13px 18px;
}

.admin-page-shell .game-place-page .panel-body {
    padding: 20px;
    background: #ffffff;
}

.admin-page-shell .game-place-page .well {
    border-left: 4px solid #2477b3;
    background: #f8fafc;
}

.admin-page-shell .game-place-create-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.admin-page-shell .game-place-create-form .form-group > label {
    display: block;
    margin-bottom: 6px;
}

.admin-page-shell .game-place-create-form #placeName {
    min-width: 240px;
}

.admin-page-shell .game-place-create-form #sortOrder {
    width: 120px;
}

.admin-page-shell .game-place-create-form .checkbox {
    padding-bottom: 8px;
}

@media (max-width: 767px) {
    .admin-page-shell .game-place-create-form,
    .admin-page-shell .game-place-create-form .form-group {
        display: block;
        width: 100%;
    }

    .admin-page-shell .game-place-create-form #placeName,
    .admin-page-shell .game-place-create-form #sortOrder,
    .admin-page-shell .game-place-create-form .form-control,
    .admin-page-shell .game-place-create-form .btn {
        width: 100%;
        min-width: 0;
    }
}

.admin-page-shell .alert {
    border-radius: 7px;
}

.sports-admin-page .sidebar-menu #menu a.is-current {
    border-left: 4px solid #56b8e6;
    background: #173b5e;
    color: #ffffff;
}

.sports-admin-page .sidebar-menu #menu li.is-current-section > a {
    color: #ffffff;
}

.sports-admin-page .sidebar-menu #menu .menu-scope {
    float: right;
    margin: 1px 7px 0 4px;
    padding: 1px 5px;
    border: 1px solid rgba(190, 214, 232, 0.65);
    border-radius: 9px;
    color: #cfe1ee;
    font-size: 10px;
    line-height: 1.35;
}

.sports-admin-page .sidebar-menu #menu .menu-scope-global {
    border-color: rgba(255, 205, 116, 0.8);
    color: #ffd98f;
}

.admin-dashboard {
    padding: 0 28px;
}

.admin-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: 24px 28px;
    border: 1px solid #dce4eb;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(30, 55, 80, 0.08);
}

.admin-dashboard-heading {
    display: flex;
    align-items: center;
}

.admin-dashboard-heading > .glyphicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    margin-right: 16px;
    border-radius: 50%;
    background: #e8f2fb;
    color: #2477b3;
    font-size: 22px;
}

.admin-dashboard-heading h2 {
    margin: 0 0 4px;
    color: #173b5e;
    font-size: 25px;
    font-weight: 600;
}

.admin-dashboard-heading > div > span {
    color: #6c7b88;
}

.admin-front-link {
    padding: 9px 14px;
    border-color: #cbd6df;
    border-radius: 7px;
    color: #173b5e;
    font-weight: 600;
}

.admin-summary-grid {
    margin-right: -10px;
    margin-left: -10px;
}

.admin-summary-grid > div {
    padding-right: 10px;
    padding-left: 10px;
}

.admin-summary-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 222px;
    margin-bottom: 20px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid #dce4eb;
    border-top: 4px solid #2477b3;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(30, 55, 80, 0.08);
    color: #33495c;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.admin-summary-card:hover,
.admin-summary-card:focus {
    color: #33495c;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 13px 30px rgba(30, 55, 80, 0.14);
}

.admin-summary-card-accounts {
    border-top-color: #36a6b8;
}

.admin-summary-card-teams {
    border-top-color: #6c9b3d;
}

.admin-summary-card-announcements {
    border-top-color: #8b6aaa;
}

.admin-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: #edf5fb;
    color: #2477b3;
    font-size: 19px;
}

.admin-summary-card-accounts .admin-summary-icon {
    background: #edf8fa;
    color: #2f8e9d;
}

.admin-summary-card-teams .admin-summary-icon {
    background: #f2f7ed;
    color: #648f3c;
}

.admin-summary-card-announcements .admin-summary-icon {
    background: #f5f0f8;
    color: #80609d;
}

.admin-summary-label {
    color: #60717f;
    font-size: 15px;
    font-weight: 600;
}

.admin-summary-card strong {
    margin: 5px 0 18px;
    color: #173b5e;
    font-size: 38px;
    line-height: 1;
}

.admin-summary-action {
    margin-top: auto;
    color: #2477b3;
    font-size: 13px;
    font-weight: 600;
}

.admin-summary-action .glyphicon {
    margin-left: 4px;
    font-size: 9px;
}

.sports-admin-page .copyrights {
    border-top: 1px solid #dce4eb;
    box-shadow: none;
}

@media (max-width: 767px) {
    .event-identity {
        margin-bottom: 20px;
        padding: 14px 8px 16px;
    }

    .event-identity-name {
        font-size: 20px;
        line-height: 1.5;
    }

    .sports-admin-login-page .body-content {
        padding-top: 14px;
    }

    .sports-admin-login-page .event-identity {
        margin-bottom: 20px;
    }

    .sports-admin-page .event-identity {
        margin: 14px 12px 0;
    }

    .admin-banner-maintenance-header,
    .admin-banner-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-banner-maintenance-header {
        gap: 14px;
    }

    .admin-banner-front-link {
        width: 100%;
        text-align: center;
    }

    .admin-banner-guidance {
        align-items: flex-start;
    }

    .admin-banner-preview-frame {
        padding: 14px;
    }

    .login-card {
        padding: 24px 20px;
        border-radius: 9px;
    }

    .login-card-header h2 {
        font-size: 23px;
    }

    .registration-overview,
    .registration-section-header,
    .admin-dashboard-header {
        align-items: stretch;
        flex-direction: column;
    }

    .registration-overview,
    .registration-panel,
    .admin-dashboard-header {
        padding: 20px;
        border-radius: 8px;
    }

    .registration-steps,
    .registration-add-button,
    .admin-front-link {
        margin-top: 18px;
        width: 100%;
    }

    .registration-add-button {
        white-space: normal;
    }

    .sports-admin-page .header-main {
        margin: 0 12px;
        padding: 0 14px;
        border-radius: 0 0 8px 8px;
    }

    .admin-header-brand small {
        display: none;
    }

    .sports-admin-page .profile_details {
        min-width: 0;
        padding-right: 10px;
        padding-left: 10px;
    }

    .admin-dashboard {
        padding: 0 16px;
    }

    .admin-page-shell {
        margin: 0 12px;
        padding: 18px;
        border-radius: 8px;
    }

    .admin-page-shell .admin-dashboard {
        padding: 0;
    }

    .admin-page-shell h2,
    .admin-page-shell h3 {
        font-size: 22px;
        line-height: 1.45;
    }

    .admin-page-shell table.table > thead > tr > th,
    .admin-page-shell table.table > tbody > tr > td {
        padding: 10px 9px;
    }

    .admin-dashboard-heading > .glyphicon {
        align-self: flex-start;
    }

    .admin-front-link {
        text-align: center;
    }

    .home-section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .home-registration-button {
        margin-top: 16px;
        width: 100%;
    }

    .announcement-card {
        border-radius: 6px;
    }

    .public-content-card {
        border-radius: 6px;
    }

    .public-link-section {
        padding: 18px 18px 0;
    }

    .public-link-card {
        min-height: 150px;
    }

    .public-result-panel .panel-title > a {
        padding-top: 15px;
        padding-bottom: 15px;
        line-height: 1.5;
    }

    .announcement-card .table-responsive {
        overflow: visible;
    }

    .announcement-table,
    .announcement-table > tbody,
    .announcement-table > tbody > tr,
    .announcement-table > tbody > tr > td {
        display: block;
        width: 100%;
    }

    .announcement-table > thead {
        display: none;
    }

    .announcement-table > tbody > tr {
        position: relative;
        padding: 16px 18px;
        border-bottom: 1px solid #e1e8ee;
    }

    .announcement-table > tbody > tr:last-child {
        border-bottom: 0;
    }

    .announcement-table > tbody > tr > td {
        padding: 3px 0;
        border: 0;
        text-align: left;
    }

    .announcement-table .announcement-pin-cell {
        position: absolute;
        top: 14px;
        right: 16px;
        width: auto;
    }

    .announcement-table .announcement-date {
        padding-right: 28px;
        color: #748493;
        font-size: 13px;
    }

    .announcement-table .announcement-subject {
        padding-top: 7px;
        line-height: 1.6;
    }

    .announcement-table .announcement-action {
        padding-top: 12px;
    }

    .announcement-table .announcement-action .btn {
        width: 100%;
    }
}

/* Keep bracket text readable; scroll the modal body instead of shrinking the SVG. */
@media screen {
    #csGraphModalBody:has(.final-bracket-svg),
    #preGraphModalBody:has(.final-bracket-svg) {
        max-height: calc(100vh - 220px);
        overflow: auto;
        min-width: 0;
    }

    #csGraphModalBody .final-bracket-svg,
    #preGraphModalBody .final-bracket-svg {
        min-width: 720px;
        max-height: none;
    }
}

