
.tm-provider-dashboard,
.tm-provider-dashboard * {
    box-sizing: border-box;
}

.tm-provider-dashboard {
    min-height: 75vh;
    padding: 48px 16px 70px;
    background: #f8fafc;
    color: #374151;
    font-family: Arial, Helvetica, sans-serif;
}

.tm-pd-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.tm-pd-header {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    border-radius: 18px;
    background: linear-gradient(135deg, #374151, #081521);
    color: #fff;
}

.tm-pd-header h1 {
    margin: 4px 0 8px;
    color: #fff;
    font-size: clamp(30px, 5vw, 46px);
}

.tm-pd-header p {
    margin: 0;
    color: rgba(255,255,255,.78);
}

.tm-pd-kicker {
    margin: 0 !important;
    color: #FF8F26 !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.tm-pd-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tm-pd-button {
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid #FF7A00;
    border-radius: 9px;
    background: #FF7A00;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tm-pd-button-light {
    border-color: rgba(255,255,255,.5);
    background: transparent;
}

.tm-pd-notice {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-left: 4px solid #16a34a;
    border-radius: 8px;
    background: #ecfdf5;
    color: #166534;
    font-weight: 700;
}

.tm-pd-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 22px 0;
}

.tm-pd-card {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    background: #fff;
}

.tm-pd-card span,
.tm-pd-card strong {
    display: block;
}

.tm-pd-card span {
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 13px;
}

.tm-pd-card strong {
    color: #081521;
    font-size: 21px;
}

.tm-pd-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 22px;
}

.tm-pd-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    background: #fff;
}

.tm-pd-sidebar a,
.tm-pd-sidebar span {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f1f3;
    color: #374151;
    text-decoration: none;
    font-weight: 700;
}

.tm-pd-sidebar a.is-active {
    border-left: 4px solid #FF7A00;
    background: #fef2f2;
    color: #FF7A00;
}

.tm-pd-sidebar span {
    color: #9ca3af;
    font-weight: 600;
}

.tm-pd-section {
    margin-bottom: 20px;
    padding: 26px;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    background: #fff;
}

.tm-pd-section h2 {
    margin: 0 0 8px;
    color: #081521;
}

.tm-pd-section > p {
    margin-top: 0;
    color: #6b7280;
}

.tm-pd-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.tm-pd-field label {
    display: block;
    margin-bottom: 7px;
    color: #081521;
    font-weight: 700;
}

.tm-pd-field input,
.tm-pd-field textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    padding: 10px 12px;
}

.tm-pd-field-full {
    margin-top: 18px;
}

.tm-pd-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
}

.tm-pd-checks label {
    font-weight: 700;
}

.tm-pd-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.tm-pd-choice {
    display: flex;
    gap: 9px;
    padding: 12px;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #fff;
}

.tm-pd-help {
    padding: 14px;
    border-radius: 9px;
    background: #fef2f2;
    color: #991b1b !important;
}

.tm-pd-savebar {
    position: sticky;
    bottom: 0;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: rgba(255,255,255,.96);
    text-align: right;
    box-shadow: 0 -8px 24px rgba(15,23,42,.06);
}

.tm-pd-login {
    width: min(520px, 100%);
    margin: 30px auto;
    padding: 34px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(15,23,42,.08);
}

.tm-pd-login h1 {
    margin-top: 6px;
    color: #081521;
}

.tm-pd-login input[type="text"],
.tm-pd-login input[type="password"] {
    width: 100%;
    min-height: 44px;
}

.tm-pd-login input[type="submit"] {
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 9px;
    background: #FF7A00;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 900px) {
    .tm-pd-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tm-pd-layout {
        grid-template-columns: 1fr;
    }

    .tm-pd-sidebar {
        position: static;
    }
}

@media (max-width: 650px) {
    .tm-pd-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .tm-pd-cards,
    .tm-pd-grid,
    .tm-pd-choice-grid {
        grid-template-columns: 1fr;
    }

    .tm-pd-section {
        padding: 20px;
    }
}


.tm-provider-dashboard .tm-media-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tm-provider-dashboard .tm-media-upload-card {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
}

.tm-provider-dashboard .tm-media-upload-card h3 {
    margin-top: 0;
    color: #081521;
}

.tm-provider-dashboard .tm-media-upload-card input[type="file"] {
    width: 100%;
}

.tm-provider-dashboard .tm-media-current {
    margin-bottom: 12px;
}

.tm-provider-dashboard .tm-media-current img {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    object-fit: cover;
}

.tm-provider-dashboard .tm-media-current-wide img {
    width: 100%;
    height: 160px;
}

.tm-provider-dashboard .tm-media-remove {
    display: block;
    margin-top: 10px;
}

.tm-provider-dashboard .tm-media-gallery-upload {
    margin-top: 16px;
}

.tm-provider-dashboard .tm-media-gallery-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.tm-provider-dashboard .tm-media-gallery-preview label {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.tm-provider-dashboard .tm-media-gallery-preview img {
    display: block;
    width: 100%;
    height: 105px;
    object-fit: cover;
}

.tm-provider-dashboard .tm-media-gallery-preview span {
    display: block;
    padding: 7px;
    font-size: 12px;
}

@media (max-width: 650px) {
    .tm-provider-dashboard .tm-media-upload-grid,
    .tm-provider-dashboard .tm-media-gallery-preview {
        grid-template-columns: 1fr;
    }
}


.tm-pd-admin-preview {
    display: flex;
    gap: 10px 18px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-left: 4px solid #2271b1;
    border-radius: 9px;
    background: #f0f6fc;
    color: #1d2327;
    align-items: center;
    flex-wrap: wrap;
}

.tm-pd-admin-preview strong {
    color: #135e96;
}

.tm-pd-admin-preview span {
    flex: 1;
    min-width: 260px;
}

.tm-pd-admin-preview a {
    color: #135e96;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 650px) {
    .tm-pd-admin-preview {
        align-items: flex-start;
        flex-direction: column;
    }

    .tm-pd-admin-preview span {
        min-width: 0;
    }
}
