/* ========== Schedule form ========== */
.tdc-schedule-form {
    max-width: 500px;
    margin: 30px auto;
    padding: 25px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    border-radius: 10px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}

.tdc-schedule-form p { margin-bottom: 15px; }

.tdc-schedule-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.tdc-schedule-form input,
.tdc-schedule-form button {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.tdc-schedule-form button {
    background-color: #0066cc;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
.tdc-schedule-form button:hover { background-color: #004d99; }

/* ========== Owner/ERP dashboard shell ========== */
.tdc-dashboard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
    text-align: center;
}
.tdc-dashboard h2 { margin-bottom: 2rem; font-size: 1.8rem; }

.tdc-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.tdc-tile {
    background-color: #003366;
    color: #fff;
    text-decoration: none;
    padding: 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
    transition: background .2s ease-in-out, transform .1s ease-in-out;
    display: block;
}
.tdc-tile:hover { background-color: #0059b3; transform: translateY(-1px); }

/* ========== Hide WP chrome on ERP pages ========== */
body.tdc-erp-page header,
body.tdc-erp-page footer,
body.tdc-erp-page .wp-site-header,
body.tdc-erp-page .wp-site-footer,
body.tdc-erp-page .site-footer,
body.tdc-erp-page .site-header { display: none !important; }

body.tdc-erp-page h1.entry-title,
h1.wp-block-post-title { display: none !important; }

body.tdc-erp-page { margin: 0 !important; padding: 0 !important; }

/* ========== Idle timeout modal ========== */
.tdc-idle-warning {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.35); z-index: 999999;
}
.tdc-idle-modal {
  width: min(560px, 92vw);
  background: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.15);
  padding: 1.25rem 1.5rem;
}
.tdc-idle-title { font-weight: 700; font-size: 1.1rem; margin-bottom: .5rem; }
.tdc-idle-body { margin-bottom: 1rem; }
.tdc-idle-actions { display: flex; gap: .5rem; justify-content: flex-end; }
.tdc-idle-actions button {
  border: 0; padding: .6rem 1rem; border-radius: 10px; cursor: pointer; font-weight: 600;
}
.tdc-idle-actions .tdc-idle-stay { background: #eef3ff; }
.tdc-idle-actions .tdc-idle-logout { background: #f6e6e6; }
