@import url("page_head.css");
/* ===========================================================================
   DSA CONTROL PANEL - the one stylesheet for every CP screen.
   Load after mq.css:  /_styles/cp.css

   Sept 2026: this file now carries BOTH sets of class names.
     tm-*   the Admin Team new look (was cp/admin_team/_team.css, which is now
            a one line @import of this file, so those pages need no edit)
     cp-*   everything else in the Control Panel
   Where the two describe the same thing - the header card, the round Back
   button, badges, group headings - the rule is written once with both names,
   so the CP cannot drift apart again.

   DSA Blue #354089, DSA Red #E11F30, card border #d5d8e8, 8px corners.
=========================================================================== */

/* ---------------------------------------------------------------- HEADER
   The page header card, with the round Back button on it.
   Built by tm_hero() (cp/admin_team/_team_common.php) or
   cp_hero() (/_includes/cp_hero.php).
   Oct 2026: the card, Back button and badge rules now live in page_head.css
   (imported at the top of this file) so member and public pages share them. */
.tm-hero .tm-waiting{font-size:small;color:#444;margin-top:6px;}

/* Group heading above a set of tiles or buttons */
.tm-group,.cp-group-head{margin:1.6em 0 0.7em 0;padding:0 0 0.3em 0.2em;font-size:small;font-weight:bold;letter-spacing:0.08em;text-transform:uppercase;text-align:left;color:#354089;border-bottom:2px solid #E11F30;}
.cp-group{margin:1.6em auto 0;max-width:620px;}
.cp-wrap{max-width:620px;margin:0 auto;}

/* ---------------------------------------------------- CARDS AND MESSAGES */
.tm-card{border:1px solid #d5d8e8;border-radius:8px;background:#fff;padding:14px 16px;margin:0 0 12px;}
.tm-card.accent{border-left:5px solid #354089;}
.tm-card.red{border-left:5px solid #E11F30;}
.tm-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;margin:0;}
.tm-grid .full{grid-column:1 / -1;}
.tm-grid dt,.tm-label{font-size:small;color:#777;}
.tm-grid dd{margin:2px 0 0;color:#222;line-height:1.45;word-break:break-word;}
.tm-text{padding:10px 12px;border:1px solid #e6e8f2;border-radius:4px;background:#fafbfd;line-height:1.5;word-break:break-word;max-height:28em;overflow:auto;}
.tm-note{margin:0 0 10px;font-size:small;color:#666;line-height:1.4;}
.tm-warn{background:#fff3e0;border-left:4px solid #a60;padding:10px 12px;margin:10px 0;line-height:1.45;border-radius:0 4px 4px 0;}
.tm-okbox{background:#e6f4ea;border-left:4px solid #060;padding:10px 12px;margin:10px 0;line-height:1.45;border-radius:0 4px 4px 0;}
.tm-errbox{background:#fdecee;border-left:4px solid #b00;padding:10px 12px;margin:10px 0;line-height:1.45;border-radius:0 4px 4px 0;}
.unset{color:#999;font-style:italic;}

.cp-callout{border-radius:6px;padding:0.9em 1.2em;margin:1.2em auto;max-width:620px;line-height:1.5;}
.cp-attn{background:#fff8e8;border:1px solid #e8d67a;color:#5a4700;}
.cp-info{background:#f4f8ff;border:1px solid #cfe0f7;color:#233;font-size:0.9em;}
.cp-callout ul{margin:0.6em 0 0;padding-left:1.2em;}
.cp-callout li{margin-bottom:0.25em;}
.cp-msg{border-radius:6px;padding:0.7em 1em;margin:1em auto;max-width:620px;font-weight:bold;}
.cp-ok{background:#e6f4e6;border:1px solid #bcdfbc;color:#1a6b1a;}
.cp-err{background:#fdecea;border:1px solid #f3bdb6;color:#8a1c12;}
.cp-msg small{display:block;font-weight:normal;margin-top:0.2em;}
.cp-who{color:#666;font-size:small;margin:0.8em 0 0.2em;}
.cp-note{color:#060;font-size:small;margin:0 0 0.5em;}
.cp-sub{color:#777;font-size:small;text-align:center;margin:0 0 1.2em;}
.cp-empty{color:#c00;text-align:center;padding:1.2em 0;font-weight:bold;}
/* Older heading block, for pages not yet on the hero card */
.cp-head{border-left:6px solid #354089;padding:0.1em 0 0.1em 0.9em;margin:0.8em 0 1.2em;}
.cp-head .cp-eyebrow{color:#354089;font-size:0.78em;font-weight:bold;letter-spacing:0.09em;text-transform:uppercase;}
.cp-head .cp-title{font-size:1.5em;font-weight:bold;color:#222;line-height:1.2;margin-top:0.1em;}

/* ------------------------------------------------------- FORM CONTROLS */
.tm-field{margin:0 0 12px;}
.tm-field label{display:block;font-size:small;color:#555;margin-bottom:3px;}
.tm-field input[type=text],.tm-field input[type=email],.tm-field select,.tm-field textarea{box-sizing:border-box;width:100%;padding:8px 10px;border:1px solid #c8cce0;border-radius:4px;background:#fff;font-size:medium;}
.tm-field input:focus,.tm-field select:focus,.tm-field textarea:focus{border-color:#354089;outline:none;box-shadow:0 0 0 2px rgba(53,64,137,0.15);}
.tm-field input[readonly]{background:#f3f4f8;color:#444;}
.tm-help{font-size:small;color:#777;margin-top:3px;line-height:1.35;}

.cp-form{max-width:620px;margin:0 auto 1.2em;}
.cp-field{display:block;font-weight:bold;color:#333;margin:0.9em 0 0.3em;font-size:0.95em;}
.cp-field small{display:block;font-weight:normal;color:#666;}
.cp-input,.cp-select,textarea.cp-input{display:block;width:100%;box-sizing:border-box;background:#fff;border:1px solid #b8bccc;border-radius:4px;padding:0.55em 0.7em;font-size:1em;font-family:inherit;color:#222;}
.cp-input:focus,.cp-select:focus,textarea.cp-input:focus{outline:none;border-color:#354089;box-shadow:0 0 0 3px rgba(53,64,137,0.18);}
.cp-input:hover,.cp-select:hover{box-shadow:none;border-color:#354089;}
.cp-inline{display:flex;flex-wrap:wrap;gap:0.5em;align-items:center;}
.cp-inline .cp-input,.cp-inline .cp-select{flex:1 1 12em;width:auto;}

/* Radio choices */
.tm-choice{display:flex;align-items:flex-start;gap:9px;margin:0 0 6px;padding:9px 11px;border:1px solid #d5d8e8;border-radius:6px;background:#fff;font-size:medium;color:#222;line-height:1.4;cursor:pointer;}
.tm-choice:hover{background:#f7f8fc;}
.tm-choice input{flex:0 0 auto;margin:3px 0 0;}
.tm-choice span{flex:1 1 auto;}
.tm-choice input:checked+span{color:#222;}
.tm-choice:focus-within{border-color:#354089;box-shadow:0 0 0 2px rgba(53,64,137,0.15);}

/* Type-ahead pick list (member search) */
.tm-picklist{margin-top:4px;border:1px solid #c8cce0;border-radius:4px;background:#fff;max-height:15em;overflow:auto;}
button.tm-pick{display:block;width:100%;margin:0;padding:8px 11px;border:0;border-bottom:1px solid #eef0f7;border-radius:0;background:#fff;color:#222;text-align:left;font-size:medium;cursor:pointer;}
button.tm-pick:last-child{border-bottom:0;}
button.tm-pick:hover,button.tm-pick:focus{background:#f3f4fa;outline:none;box-shadow:none;}
.tm-pick strong{display:block;color:#354089;}
.tm-pick span{display:block;font-size:small;color:#777;}
.tm-pick.none{padding:8px 11px;font-size:small;color:#777;}
.tm-picked{margin-top:4px;padding:6px 10px;border-left:4px solid #060;background:#e6f4ea;border-radius:0 4px 4px 0;font-size:small;color:#060;font-weight:bold;}

/* --------------------------------------------------------------- BUTTONS
   Three shapes, and both naming schemes:
     .tm-btn      inline button, DSA blue, .go green, .red red, .ghost outline
     .cp-btn      full width stacked button inside .cp-group / .cp-wrap
     .cp-formbtn  a stand-alone Save / Cancel on an older form (floats right)
     .cp-mini     a small button inside a table row
   main.css styles button{} and input[type=submit]{} with element selectors,
   and input[type=submit] with an attribute selector that outranks a plain
   class - so the submit form of each selector is spelled out. */
.tm-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 4px;align-items:center;}
.tm-btn,a.tm-btn,a.tm-btn:link,a.tm-btn:visited,input[type=submit].tm-btn{display:inline-block;box-sizing:border-box;margin:0;padding:9px 18px;border:1px solid #354089;border-radius:4px;background:#354089;color:#fff;font-size:medium;font-weight:bold;text-decoration:none;cursor:pointer;line-height:1.2;width:auto;}
.tm-btn:hover,.tm-btn:focus,a.tm-btn:hover{background:#262f6b;border-color:#262f6b;color:#fff;outline:none;}
.tm-btn.go{background:#060;border-color:#060;}
.tm-btn.go:hover,.tm-btn.go:focus{background:#040;border-color:#040;}
.tm-btn.red{background:#E11F30;border-color:#E11F30;}
.tm-btn.red:hover,.tm-btn.red:focus{background:#b3121f;border-color:#b3121f;}
.tm-btn.ghost,a.tm-btn.ghost,a.tm-btn.ghost:link,a.tm-btn.ghost:visited{background:#fff;color:#354089;}
.tm-btn.ghost:hover,.tm-btn.ghost:focus,a.tm-btn.ghost:hover{background:#f3f4fa;color:#E11F30;}
.tm-btn[disabled]{opacity:0.5;cursor:not-allowed;}

a.cp-btn,a.cp-btn:link,a.cp-btn:visited,.cp-btn,input[type=submit].cp-btn,button.cp-btn{display:block;box-sizing:border-box;width:100%;margin:0 0 0.7em;padding:0.8em 1em;border:1px solid #b8bccc;border-radius:6px;background:#fff;color:#354089 !important;font-size:1.02em;font-weight:bold;font-family:inherit;text-align:center;text-decoration:none;cursor:pointer;}
a.cp-btn:hover,input[type=submit].cp-btn:hover,button.cp-btn:hover{background:#f4f8ff;border-color:#354089;color:#354089 !important;text-decoration:none;box-shadow:none;}
a.cp-primary,a.cp-primary:link,a.cp-primary:visited,input[type=submit].cp-primary,button.cp-primary{background:#354089;border-color:#354089;color:#fff !important;}
a.cp-primary:hover,input[type=submit].cp-primary:hover,button.cp-primary:hover{background:#262f6b;border-color:#262f6b;color:#fff !important;}
a.cp-warn,a.cp-warn:link,a.cp-warn:visited,input[type=submit].cp-warn,button.cp-warn{background:#fff;border-color:#c00;color:#c00 !important;}
a.cp-warn:hover,input[type=submit].cp-warn:hover,button.cp-warn:hover{background:#c00;border-color:#c00;color:#fff !important;}
/* solid red - for an action that changes a lot of records at once (Oct 2026) */
a.cp-danger,a.cp-danger:link,a.cp-danger:visited,input[type=submit].cp-danger,button.cp-danger{background:#E11F30;border-color:#E11F30;color:#fff !important;}
a.cp-danger:hover,input[type=submit].cp-danger:hover,button.cp-danger:hover{background:#b3121f;border-color:#b3121f;color:#fff !important;}
.cp-btn small{display:block;font-weight:normal;font-size:0.8em;opacity:0.85;margin-top:0.2em;}

.cp-actions{display:flex;gap:0.6em;justify-content:flex-end;margin-top:1.2em;position:relative;z-index:2;clear:both;}
/* a.cp-btn:link carries a pseudo-class, which outranks a plain two-class
   selector - so the link form is spelled out, or an <a> Cancel keeps the
   full-width styling and swamps the row. */
.cp-actions .cp-btn,.cp-actions a.cp-btn:link,.cp-actions a.cp-btn:visited,.cp-actions input[type=submit].cp-btn{width:auto;min-width:9em;margin:0;flex:0 0 auto;}

.cp-formbtn,input[type=submit].cp-formbtn,button.cp-formbtn{display:inline-block;float:right;width:auto;min-width:9em;margin:0 0 0.6em 0.6em;padding:0.7em 1em;border:1px solid #b8bccc;border-radius:6px;background:#fff;color:#354089 !important;font-size:1em;font-weight:bold;font-family:inherit;text-align:center;cursor:pointer;}
.cp-formbtn:hover,input[type=submit].cp-formbtn:hover,button.cp-formbtn:hover{background:#f4f8ff;border-color:#354089;color:#354089 !important;box-shadow:none;}
.cp-formbtn.cp-primary,input[type=submit].cp-formbtn.cp-primary,button.cp-formbtn.cp-primary{background:#354089;border-color:#354089;color:#fff !important;}
.cp-formbtn.cp-primary:hover,input[type=submit].cp-formbtn.cp-primary:hover,button.cp-formbtn.cp-primary:hover{background:#262f6b;border-color:#262f6b;color:#fff !important;}

.cp-mini,input[type=submit].cp-mini,a.cp-mini,a.cp-mini:link,a.cp-mini:visited{display:inline-block;width:auto;margin:0;padding:0.3em 0.8em;border:1px solid #b8bccc;border-radius:4px;background:#fff;color:#354089 !important;font-size:0.8em;font-weight:bold;font-family:inherit;text-decoration:none;cursor:pointer;}
.cp-mini:hover,input[type=submit].cp-mini:hover,a.cp-mini:hover{background:#f4f8ff;border-color:#354089;box-shadow:none;text-decoration:none;}
a.cp-mini.cp-remove,a.cp-mini.cp-remove:link,a.cp-mini.cp-remove:visited{border-color:#e0b4b4;color:#c00 !important;}
a.cp-mini.cp-remove:hover{background:#c00;border-color:#c00;color:#fff !important;}

/* ------------------------------------------------------- PANELS AND TILES */
.tm-panel{border:1px solid #d5d8e8;border-radius:8px;background:#fff;overflow:hidden;margin:0 0 12px;}
button.tm-panel-head{display:flex;align-items:center;gap:10px;width:100%;margin:0;padding:14px 16px;border:0;border-radius:0;background:none;color:#222;text-align:left;cursor:pointer;font-size:medium;}
button.tm-panel-head:hover,button.tm-panel-head:focus{background:#f7f8fc;box-shadow:none;outline:none;}
.tm-panel-titles{flex:1 1 auto;min-width:0;}
.tm-panel-title{display:block;font-weight:bold;color:#354089;}
.tm-panel-sum{display:block;margin-top:2px;font-size:small;color:#666;}
.tm-chev{flex:0 0 auto;color:#354089;transition:transform 0.2s;}
button.tm-panel-head[aria-expanded="true"] .tm-chev{transform:rotate(180deg);}
.tm-panel-body{padding:4px 16px 16px;border-top:1px solid #e6e8f2;}

.tm-tiles{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;}
a.tm-tile{position:relative;flex:0 1 170px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;text-align:center;padding:16px 10px 14px;border:1px solid #d5d8e8;border-radius:8px;background:#fff;color:#354089;text-decoration:none;transition:border-color 0.15s,box-shadow 0.15s,transform 0.15s;}
a.tm-tile:hover,a.tm-tile:focus{border-color:#354089;box-shadow:0 3px 10px rgba(53,64,137,0.18);transform:translateY(-2px);outline:none;}
a.tm-tile svg{width:44px;height:44px;margin-bottom:8px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
a.tm-tile:hover svg{color:#E11F30;}
a.tm-tile .txt{display:block;}
a.tm-tile .t{display:block;font-weight:bold;font-size:medium;color:#222;line-height:1.25;}
a.tm-tile .d{display:block;margin-top:4px;font-size:small;color:#666;line-height:1.35;}
a.tm-tile .count{position:absolute;top:8px;right:8px;min-width:22px;padding:0 6px;border-radius:999px;background:#E11F30;color:#fff;font-size:small;font-weight:bold;line-height:22px;text-align:center;}
a.tm-tile .count.zero{background:#e1e4f0;color:#666;}
div.tm-tile.soon{position:relative;flex:0 1 170px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;text-align:center;padding:16px 10px 14px;border:1px dashed #c8cce0;border-radius:8px;background:#f7f8fc;color:#9aa0bd;cursor:default;}
div.tm-tile.soon svg{width:44px;height:44px;margin-bottom:8px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
div.tm-tile.soon .txt{display:block;}
div.tm-tile.soon .t{display:block;font-weight:bold;font-size:medium;color:#777;line-height:1.25;}
div.tm-tile.soon .d{display:inline-block;margin-top:6px;padding:1px 10px;border-radius:999px;background:#354089;color:#fff;font-size:small;font-weight:bold;line-height:1.6;}

/* --------------------------------------------------------- LISTS AND ROWS */
.tm-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0 12px;}
.tm-tabs{display:flex;flex-wrap:wrap;gap:6px;}
a.tm-tab,a.tm-tab:link,a.tm-tab:visited{padding:6px 14px;border:1px solid #d5d8e8;border-radius:999px;background:#fff;color:#354089;font-size:small;font-weight:bold;text-decoration:none;}
a.tm-tab:hover,a.tm-tab:focus{border-color:#354089;}
a.tm-tab.on{background:#354089;border-color:#354089;color:#fff;}
.tm-search{display:flex;gap:6px;flex:1 1 260px;justify-content:flex-end;}
.tm-search input[type=text]{flex:1 1 auto;min-width:0;max-width:320px;padding:7px 10px;border:1px solid #c8cce0;border-radius:4px;font-size:medium;}
.tm-list{border:1px solid #d5d8e8;border-radius:8px;background:#fff;overflow:hidden;}
a.tm-row,a.tm-row:link,a.tm-row:visited{display:flex;align-items:center;gap:12px;padding:11px 14px;border-bottom:1px solid #e6e8f2;color:#222;text-decoration:none;}
a.tm-row:last-child{border-bottom:none;}
a.tm-row:hover,a.tm-row:focus{background:#f7f8fc;outline:none;}
a.tm-row.waiting{border-left:4px solid #E11F30;padding-left:10px;}
.tm-row-date{flex:0 0 88px;font-size:small;color:#666;line-height:1.3;}
.tm-row-main{flex:1 1 auto;min-width:0;}
.tm-row-subj{display:block;font-weight:bold;color:#222;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tm-row-sub{display:block;margin-top:2px;font-size:small;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tm-row-status{flex:0 0 auto;text-align:right;}
.tm-empty{padding:30px 14px;text-align:center;color:#777;}

a.cp-row,a.cp-row:link,a.cp-row:visited{display:flex;align-items:center;gap:1em;border:1px solid #e2e2e2;border-left:5px solid #354089;border-radius:5px;background:#fff;padding:0.7em 0.9em;margin-bottom:0.45em;text-decoration:none;color:inherit !important;}
a.cp-row:hover{background:#f4f8ff;border-color:#354089;text-decoration:none;}
a.cp-row.is-late{border-left-color:#c8891a;}
.cp-row-main{flex:1 1 auto;}
.cp-row-name{font-weight:bold;color:#354089;font-size:1em;line-height:1.25;}
.cp-row-meta{color:#666;font-size:0.85em;margin-top:0.15em;}
.cp-row-side{flex:0 0 auto;text-align:right;}
.cp-pill{display:inline-block;border-radius:999px;padding:0.15em 0.75em;font-size:0.78em;font-weight:bold;white-space:nowrap;}
.cp-pill-ok{background:#e6f4e6;color:#1a6b1a;}
.cp-pill-due{background:#fff0d6;color:#8a5200;}
.cp-pill-flat{background:#eef1fa;color:#4a5488;}
.cp-off{color:#999;}
.cp-off .cp-row-name{color:#999;}

/* ----------------------------------------------------------------- TABLES */
.cp-table{width:100%;border-collapse:collapse;margin:0 0 1em;}
.cp-table th{background:#354089;color:#fff;font-size:0.8em;letter-spacing:0.04em;text-transform:uppercase;padding:0.55em 0.5em;text-align:center;}
.cp-table th.cp-left{text-align:left;}
.cp-table td{padding:0.55em 0.5em;border-bottom:1px solid #e6e6e6;text-align:center;color:#333;font-size:0.92em;}
.cp-table td.cp-left{text-align:left;}
.cp-table tbody tr:nth-child(even){background:#f6f8fc;}
.cp-table tbody tr:hover{background:#eef3ff;}
.cp-table td form{margin:0;}
.cp-table .cp-missing,.cp-kv .cp-missing{color:#8a5200;font-weight:bold;}
.cp-table .cp-unpaid{color:#c00;font-weight:bold;}
/* A second line under a cell's main value */
.cp-link2{display:block;font-size:0.82em;font-weight:normal;margin-top:0.15em;word-break:break-all;}
a.cp-link2,a.cp-link2:link,a.cp-link2:visited{color:#0348a9 !important;text-decoration:none;}
a.cp-link2:hover{color:#c00 !important;text-decoration:underline;}
.cp-link2.cp-none{color:#aaa;font-style:italic;}

/* ------------------------------------------------------------ SIDE PANELS
   #side is color:#FFF in main.css, so every colour here is explicit. */
/* A heading in the side column - the group heading, sized for the sidebar.
   Sept 2026: was written into entry/cp/home.php; it belongs here. */
/* The space above the heading is PADDING, not margin: the nav buttons above
   are floated (main.css #nav li a) and this heading clears them, and a cleared
   element's top margin is swallowed by the clearance - 1.2em and then 30px
   both showed as nothing. Same rule in /_styles/rtf_side.css and the three
   copies on the public entry pages - keep all five in step. Sept 2026. */
.cp-side-h{clear:both;margin:0 0 0.5em;padding:24px 0 0.3em 0.2em;font-size:small;font-weight:bold;letter-spacing:0.08em;text-transform:uppercase;color:#354089;border-bottom:2px solid #E11F30;}
/* A caption under a side heading, and the one number in it worth reading from
   across the room. Was inline in entry/cp/home.php - moved here Sept 2026 so
   every control panel page can use it. */
.cp-side-cap{color:#666;font-size:small;line-height:1.5;margin:0 0 1.2em;text-align:center;}
.cp-big{display:block;color:#354089;font-size:1.6em;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:-0.01em;}
.tm-side-team{clear:both;margin:0 4% 0 2%;padding-top:3%;color:#222;}
.tm-side-team h3{color:#222;}
.tm-side-team .who{display:flex;justify-content:space-between;gap:8px;padding:7px 10px;margin:0 0 4px;border-radius:4px;font-size:small;line-height:1.3;background:#f1f2f7;color:#222;}
.tm-side-team .who strong{color:#222;}
.tm-side-team .who span{color:#333;white-space:nowrap;font-variant-numeric:tabular-nums;}
.tm-side-team .who.d0{background:#bdeebd;}
.tm-side-team .who.d1{background:#ffd49e;}
.tm-side-team .who.d2{background:#fff09a;}

.tm-side-block{clear:both;margin:14px 4% 0 2%;border:1px solid #d5d8e8;border-radius:8px;background:#fff;color:#222;overflow:hidden;}
.tm-side-block h3,.tm-side-block summary{display:block;margin:0;padding:10px 12px;font-size:medium;font-weight:bold;color:#354089;background:#f7f8fc;border-bottom:1px solid #e6e8f2;}
.tm-side-block summary{cursor:pointer;list-style:none;}
.tm-side-block summary::-webkit-details-marker{display:none;}
.tm-side-block summary:after{content:"\25BE";float:right;color:#354089;transition:transform 0.2s;}
.tm-side-block details[open] summary:after{transform:rotate(180deg);}
.tm-side-block details:not([open]) summary{border-bottom:none;}
.tm-side-block .inner{padding:8px 12px 12px;font-size:small;line-height:1.45;color:#222;}
.tm-side-block .inner p{margin:0 0 6px;color:#222;}
.tm-side-block a,.tm-side-block a:link,.tm-side-block a:visited{color:#354089;}
.tm-side-block a:hover,.tm-side-block a:focus{color:#E11F30;}
.tm-meet{display:flex;gap:10px;padding:6px 12px;border-bottom:1px solid #eef0f6;font-size:small;line-height:1.35;}
.tm-meet:last-child{border-bottom:none;}
.tm-meet .when{flex:0 0 78px;color:#555;font-variant-numeric:tabular-nums;}
.tm-meet.off .when,.tm-meet.off a{color:#b00 !important;}
.tm-urls{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;}
.tm-urls dt{font-family:Consolas,Menlo,monospace;font-size:0.95em;color:#354089;}
.tm-urls dd{margin:0;color:#333;}

/* ----------------------------------------------------------------- PHONES */
@media only screen and (max-width:600px){
.tm-grid{grid-template-columns:1fr;}
.tm-search{justify-content:flex-start;}
.tm-row-date{flex-basis:70px;}
.cp-table th,.cp-table td{padding:0.45em 0.25em;font-size:0.85em;}
a.cp-row{display:block;}
.cp-row-side{text-align:left;margin-top:0.4em;}
.cp-hide-sm{display:none;}
.cp-actions{flex-direction:column;}
.cp-actions .cp-btn,.cp-actions input[type=submit].cp-btn{width:100%;}
.cp-formbtn,input[type=submit].cp-formbtn,button.cp-formbtn{float:none;display:block;width:100%;margin:0 0 0.6em 0;}
}
@media only screen and (max-width:420px){
a.tm-row{flex-wrap:wrap;}
.tm-row-status{flex-basis:100%;text-align:left;}
.tm-tiles{gap:8px;}
a.tm-tile{flex:1 1 100%;flex-direction:row;text-align:left;padding:10px 40px 10px 12px;}
a.tm-tile svg{flex:0 0 36px;width:36px;height:36px;margin:0 12px 0 0;}
div.tm-tile.soon{flex:1 1 100%;flex-direction:row;text-align:left;padding:10px 12px;}
div.tm-tile.soon svg{flex:0 0 36px;width:36px;height:36px;margin:0 12px 0 0;}
a.tm-tile:hover,a.tm-tile:focus{transform:none;}
.tm-actions .tm-btn{flex:1 1 100%;text-align:center;}
}


/*==========================================================================
  THE MONEY PANEL
  Entry Payments and the three payment reports. Lived inline in
  home_payevent.php until the reports needed it too; four copies of the same
  stylesheet is three copies too many.
  ==========================================================================*/
.pe-tiles{max-width:620px;margin:1.4em auto 0;display:flex;gap:0.8em;flex-wrap:wrap;}
.pe-tile{flex:1 1 13em;border:1px solid #d5d8e8;border-radius:8px;background:#fff;padding:0.9em 1em;}
.pe-tile .lab{color:#777;font-size:0.8em;letter-spacing:0.05em;text-transform:uppercase;}
.pe-tile .val{color:#354089;font-size:1.7em;line-height:1.2;font-variant-numeric:tabular-nums;margin-top:0.15em;}
.pe-tile .sub{color:#777;font-size:0.85em;line-height:1.45;margin-top:0.2em;}
.pe-tile.owed .val{color:#c00;}
.pe-tile.owed.clear .val{color:#0a7d32;}

.pe-bar{max-width:620px;margin:1em auto 0;}
.pe-bar .track{height:12px;border-radius:6px;background:#eceef5;overflow:hidden;}
.pe-bar .fill{height:100%;background:#354089;}
.pe-bar .cap{display:flex;justify-content:space-between;color:#777;font-size:0.82em;margin-top:0.35em;}

.pe-old{max-width:620px;margin:0 auto;color:#777;font-size:0.88em;line-height:1.55;}

/* Gross, the fee, and what is actually theirs. Never shown as a deduction:
   the member pays the fee, it was never the organiser's money. */
.pe-split{max-width:620px;margin:1.4em auto 0;border:1px solid #d5d8e8;border-radius:8px;background:#fff;overflow:hidden;}
.pe-split .row{display:flex;justify-content:space-between;align-items:baseline;gap:1em;padding:0.65em 1.1em;color:#333;font-variant-numeric:tabular-nums;}
.pe-split .row+.row{border-top:1px solid #f0f1f6;}
.pe-split .row small{display:block;color:#999;font-size:0.8em;font-variant-numeric:normal;margin-top:0.1em;}
.pe-split .head{background:#f7f8fb;color:#777;font-size:0.8em;letter-spacing:0.05em;text-transform:uppercase;padding-top:0.5em;padding-bottom:0.5em;}
.pe-split .cx{color:#8a8f9e;}
.pe-split .tot{background:#f7f8fb;font-weight:bold;color:#222;}
.pe-split .fee{color:#666;}
.pe-split .net{background:#f4f8ff;color:#354089;font-weight:bold;font-size:1.15em;}
.pe-feenote{max-width:620px;margin:0.5em auto 0;color:#777;font-size:0.85em;line-height:1.5;}

/*==========================================================================
  THE PAYMENT REPORT LISTS
  ==========================================================================*/
.pr-list{max-width:620px;margin:1em auto 0;border:1px solid #d5d8e8;border-radius:8px;background:#fff;overflow:hidden;}
.pr-list .r{display:flex;align-items:baseline;gap:0.8em;padding:0.6em 1em;color:#333;}
.pr-list .r+.r{border-top:1px solid #f0f1f6;}
.pr-list .r:nth-child(even){background:#fbfbfd;}
.pr-list .r a{color:#354089;text-decoration:none;}
.pr-list .r a:hover{text-decoration:underline;}
.pr-list .who{flex:1 1 auto;min-width:0;}
.pr-list .who small{display:block;color:#999;font-size:0.8em;margin-top:0.1em;}
.pr-list .amt{flex:0 0 auto;font-variant-numeric:tabular-nums;text-align:right;}
.pr-list .amt.due{color:#c00;}
.pr-list .amt.ok{color:#0a7d32;}
.pr-list .hd{background:#f7f8fb;color:#777;font-size:0.8em;letter-spacing:0.05em;text-transform:uppercase;padding:0.5em 1em;display:flex;justify-content:space-between;}
.pr-list .cx{color:#8a8f9e;}
.pr-list .cx .amt{color:#8a8f9e;}
.pr-tag{display:inline-block;font-size:0.72em;letter-spacing:0.04em;text-transform:uppercase;color:#7a5b00;background:#fdf3d6;border-radius:3px;padding:0.1em 0.45em;margin-left:0.4em;vertical-align:0.1em;}
.pr-tag.off{color:#777;background:#eceef2;}
.pr-count{max-width:620px;margin:1.6em auto 0.4em;color:#354089;font-weight:bold;}

/* ---------------------------------------------------------------------------
   Form pieces added Nov 2026 for the Meetings CP (any CP screen may use them)
   .cp-yn      a Yes / No choice (two large radio buttons)
   .cp-dt      a row of selects - date or time - that wraps on a phone
   .cp-checks  a tick-list, one row per item
   .cp-kv      a short label / value summary
   .cp-ctx     a line of context under the header card (meeting, date, ID)
--------------------------------------------------------------------------- */
.cp-yn{border:0;margin:0.9em 0 0.3em;padding:0;min-width:0;}
.cp-yn legend{font-weight:bold;color:#333;font-size:0.95em;padding:0;margin-bottom:0.35em;}
.cp-yn legend small{display:block;font-weight:normal;color:#666;}
.cp-yn label{display:inline-flex;align-items:center;gap:0.4em;margin:0 0.5em 0 0;padding:0.45em 1em;border:1px solid #b8bccc;border-radius:6px;background:#fff;cursor:pointer;font-weight:normal;}
.cp-yn label:has(input:checked){border-color:#354089;background:#eef1fb;color:#354089;font-weight:bold;}
.cp-yn input{margin:0;width:1.1em;height:1.1em;accent-color:#354089;}
.cp-dt{display:flex;flex-wrap:wrap;gap:0.5em;}
.cp-dt .cp-select{width:auto;flex:1 1 6em;}
.cp-dt .cp-dt-wide{flex:2 1 12em;}
.cp-checks{list-style:none;margin:0.4em 0 1em;padding:0;border:1px solid #e2e2e2;border-radius:6px;overflow:hidden;}
.cp-checks li{margin:0;border-bottom:1px solid #eef0f4;}
.cp-checks li:last-child{border-bottom:0;}
.cp-checks label{display:flex;gap:0.7em;align-items:flex-start;padding:0.6em 0.9em;cursor:pointer;font-weight:normal;color:#333;}
.cp-checks label:hover{background:#f4f8ff;}
.cp-checks input{margin:0.15em 0 0;width:1.15em;height:1.15em;flex:0 0 auto;accent-color:#354089;}
.cp-checks .cp-num{color:#354089;font-weight:bold;min-width:3em;}
.cp-kv{width:100%;max-width:620px;margin:0 auto 1em;border-collapse:collapse;}
.cp-kv th{text-align:left;width:32%;color:#666;font-weight:normal;padding:0.45em 0.6em;border-bottom:1px solid #eef0f4;vertical-align:top;}
.cp-kv td{padding:0.45em 0.6em;border-bottom:1px solid #eef0f4;color:#222;font-weight:bold;}
.cp-toolbar{display:flex;flex-wrap:wrap;gap:0.5em;align-items:flex-end;max-width:620px;margin:0 auto 1em;}
.cp-toolbar .cp-input{flex:1 1 10em;width:auto;}
.cp-toolbar .cp-mini,.cp-toolbar input[type=submit].cp-mini{padding:0.55em 1em;}
.cp-table tr.cp-row-off td,.cp-table tr.cp-row-off td a{color:#c00;}
.cp-legend{font-size:0.85em;color:#666;max-width:620px;margin:0 auto 1em;}
.cp-legend .cp-swatch-off{color:#c00;font-weight:bold;}
@media only screen and (max-width:600px){.cp-kv th{width:40%;}}

/* Two fields side by side (e.g. agenda Item number / Sub-item): labels and boxes line up, stack on a phone */
.cp-pair{display:flex;gap:1em;align-items:flex-end;margin:0 0 0.2em;}
.cp-pair>div{flex:1 1 0;min-width:0;}
.cp-pair .cp-input{width:100%;box-sizing:border-box;}
@media only screen and (max-width:480px){.cp-pair{flex-direction:column;align-items:stretch;gap:0;}}

/* Calendar date picker (mp_date_picker) */
.cp-input.cp-date{width:auto;min-width:11em;flex:0 1 14em;}
.cp-date-clear{align-self:center;}
/* Drag-and-drop file upload (Documents) */
.cp-drop{position:relative;border:2px dashed #9aa3c7;border-radius:10px;background:#f6f8fc;padding:1.6em 1em;text-align:center;color:#444;transition:background .15s,border-color .15s;}
.cp-drop.over{background:#e8eeff;border-color:#354089;}
.cp-drop.has-files{border-style:solid;border-color:#354089;}
.cp-drop p{margin:0.2em 0;}
.cp-drop-big{font-size:1.15em;font-weight:bold;color:#354089;}
.cp-drop-pick{color:#0348a9;text-decoration:underline;cursor:pointer;font-weight:bold;}
.cp-drop-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;}
.cp-drop-list{list-style:none;margin:0.8em 0 0;padding:0;text-align:left;}
.cp-drop-list li{background:#fff;border:1px solid #dde0ee;border-radius:5px;padding:0.35em 0.6em;margin-top:0.3em;font-size:0.9em;word-break:break-all;}
.cp-drop-list li.bad{color:#c00;border-color:#f1c4c4;}
